How to Use Gates In Laravel | Laravel Authentication Course | Laravel Mailing Course
VloĆŸit
- Äas pĆidĂĄn 25. 07. 2024
- This video shows you how to use Gates in Laravel. The examples will be very basic but this could be an opener if you want to use roles inside your application - Learn more about THE best PHP Framework. Laravel provides a simple email API & drivers for sending email via SMTP.
đ New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
đČ Letâs plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
đ Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
đ„ Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
Want to learn more?
- Courses: / @codewithdary
đ Table of Content
00:00 - Introduction
01:12 - Adding a new column to users table
04:12 - How to define a gate (Allows)
08:08 - How to define a gate (Denies)
#laravel #authentication #mailing #laravel8 #gates
LETS CONNECT THROUGH INSTAGRAM.
instagram.com/codewithdary
thank you very my friend i like your lessons
My pleasure David!
Good Morning Dary!
First to thank you for your awesome tutorials!
đđđœđđœ
Thank you Antonn, much appreciated!
The best channel with laravel content
Thank you so much Abel!
Thanks a lot man. You are great
You're welcome!
always thanks! dary!!! your content is like a gold mine!!!
Share that Gold with Dary!
Become a Patreon!
Happy to hear that!
Haha! Thanks for the support Antonn!
Hi Dary, Great tutorial regarding gates. Just seems some things can be simplified based on laravel documentation. For example, in controller just check if user is authorized, because 403 error will follow automatically in case "no access". I recommend to use ($this->authorize('admin-only')); Also Gates can be simplified to something like this Gate::define('admin-only', fn (User $user) => $user->is_admin); What do you think? Less code and do the same.
Great content!, I'm sharing your videos to my devs, thanks a lot
Wow that's incredible Jorge! :D
Tell them I said Hi and rock that work!!
I just want to say big thanks for your tuts
No worries man. Thank you for your support!
Thankyou dary! you doing greate stuff!
We are doing great stuff together!!
Just learning php and laravel at the moment and Im so glad I found your channel, it really helps a lot! Can you also explain in a video more on the permissions for the roles?
Thank you!
Thank you Dan! I might (probably will) do a project where I'll add it.
thank you so much, very helpful
Thank you for watching :)
Hands on!!
Thank you Dexter!
Awesome...thank you đ
You're welcome đ
Yes..Soon I will contribute my part.
My man!
Great stuff. Would like to see a Laravel backend for a Auth and API for a Flutter Mobile App.
Noted!
Great boss
Thanks man! :)
Love your Videos and Explanation is awesome...Please make a video on mini laravel project that covers roles and permissions and realtionships
Great suggestion!
@@codewithdary Thank you when will we get this good news?? :D
thanks
Welcome
Can you please explain the use of mailgun
1. How to send message through mailgun in Laravel and how to test it in postman.
I'm going to use Mailtrap in the next video first.
Please make project on how to use multiple roles in our application
Definitely coming soon :)
@@codewithdary thank you đ
I am you subscribe from Russia !!! Verify content !!! To be !
Much love from the Netherlands!