return (new SlackMessage())
->from("New user request on " . config("app.name"))
->content(":bangbang: An user has requested a new feedback on " . config("app.name"))
->attachment(function ($attachment) use ($notifiable) {
$attachment->title("Feedback ID: {$notifiable->uuid}")
->content("**You can moderate this feedback right away**")
->markdown(["title", "text"])
->fields([
"Request from" => "{$notifiable->user->name} (ID: {$notifiable->user->uuid})",
"Request topic" => "{$notifiable->topic->name}",
]);
});
I would like to use something like this.