Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there markdown custom message to laravel 5.1 in this library? #88

Open
arturcesarmelo opened this issue Aug 2, 2017 · 0 comments
Open

Comments

@arturcesarmelo
Copy link

arturcesarmelo commented Aug 2, 2017

I would like to use something like this.

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}",
                ]);
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant