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: ua-cam.com/video/bKUNHPvhsF0/v-deo.html
Damn another one who found out ;) I have a tutorial about Broadcasting, but maybe you can combine both videos or your end result? ua-cam.com/video/UwB5z6u7vt8/v-deo.html&t
@@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');
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?
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.
LETS CONNECT THROUGH INSTAGRAM.
instagram.com/codewithdary
Clearly explained! thanks a lot!
typing sound is so cool 😀
It does, right?!
Awesome explanation !
Thank you Sameera! :)
hey which extension do you use to beautify that command line of yours in blue and yellow strip which alongside shows your branch
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:
ua-cam.com/video/bKUNHPvhsF0/v-deo.html
very useful for me. thanks.
You are welcome Harhukam!
Hi Dary, thanks for your videos. It sounds like you're dutch :) Can you make a video about broadcasting notifications?
Damn another one who found out ;)
I have a tutorial about Broadcasting, but maybe you can combine both videos or your end result? ua-cam.com/video/UwB5z6u7vt8/v-deo.html&t
amazing stuff
Thank you Sidney :)
hay Dary, I appreciate what you do
How did you define your tokens/API keys? Are you talking about a bearer token?
@@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');
Thanks man
You're welcome!
Thank you for this video
My pleasure Jean! :)
Thanks man, you're the best
You're welcome!
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?
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
@@codewithdary I need the session::flash to be called when a job fails though. How would my controller know when a job has failed.
helpfull
Glad to hear that!!
Hi! How can I change the design of notification? anyway, thanks a lot for the video
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
Thanks but there is no such things like "Fake Aids" in Laravel, just "facades" :)
Thank you!! :)
How do you config the email channel
Mailtrap!
I've got a separate video on it
hai possible to send mail with image using laravel notification
ua-cam.com/video/jsZuz1q87xs/v-deo.html
I have an error with routeNotificationfor()
What wrong?
you should specify that video is bout email notification
You can send notifications of everything. I decided to send a email notification, anything else works in the same exact way
@@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.
Hi! I don't know if someone can help me figure out why I get this error: Class 'App\Http\Controllers\TestEnrollment' not found
Have you imported the class?
It is testenrollmentcontroller