Damn another one who found out ;) I have a tutorial about Broadcasting, but maybe you can combine both videos or your end result? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UwB5z6u7vt8.html&t
Hi, please follow the following two links: ohmyz.sh/ github.com/ohmyzsh/ohmyzsh/wiki/Themes Or you could watch a video where I do it myself: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bKUNHPvhsF0.html
I have created a mailable class & also I have attached a view with dynamic data. how can I fire email using notification with my own email template along with data which I am passing through my controller?
@@codewithdary yes bearer tokens -after installing sanctum and migration -I added on User Model the following: use Laravel\Sanctum\HasApiTokens; use HasApiTokens; // as a trait - Api/AuthController.php [ register, login (issue token), logout(revoke tokens) ] - protecting api.php routs with sanctum middleware should I assign abilities to the tokens or gates with the correct permission on the (controllers, requests, resources) should be enough, like this: abort_if(Gate::denies('post_show'), Response::HTTP_FORBIDDEN, '403 Forbidden');
Hi Dary, Is it possible to flash messages from notifications? I want to flash a message to the session when a queued job fails. But I do not know how to.
You need to return a message from your controller like this: Session::flash('message', 'This is a message!'); Session::flash('alert-class', 'alert-danger'); Then you can print it out inside your view like this: @if(Session::has('message')) {{ Session::get('message') }} @endif
First you need to publish the notification package’s resources php artisan vendor:publish --tag=laravel-notifications php artisan vendor:publish --tag=laravel-mail The colors and style are controlled by the CSS file in resources/views/vendor/mail/html/themes/default.css
@@codewithdary i was looking for broadcast notifications running away from everyone explaining email one, so i gave it a chance with hope it would be something different but you can imagine my reaction. Anyway thank you for your videos. I watch them a lot.