How to Use Policies in Laravel Nova | Policy Laravel Tutorial | Laravel Nova for Beginners
This video will show you how you could use Policies in Laravel Nova. Policies in Laravel Nova are part of authorization in Laravel. A Policy in Laravel Nova allows you to protect content or resources from unauthorized access - Want to work with one of the best and most productive admin panels in Laravel? Nova is a beautiful admin panel that has been created by the developers of Laravel.
πΒ 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: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
π² 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: https://calendly.com/codewithdary
π Newsletter
Sign up for my free weekly email newsletter: https://www.newsletter.codewithdary.com
π₯ Resources
- PHP Hosting (10% DISCOUNT): https://www.hostinger.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Twitter: https://twitter.com/codewithdary
- Blog: https://blog.codewithdary.com/
- Newsletter: https://newsletter.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary/product-dashboard
π Useful links
- Laravel Policies Docs: https://laravel.com/docs/9.x/authorization#creating-policies
- Nova Policies Docs: https://nova.laravel.com/docs/4.0/resources/authorization.html
π Table of Content
00:00 - Introduction
01:11 - Creating our First Policy
03:49 - Defining our Policy
05:34 - Working with Roles in Policies
07:41 - Policy Cleanup
09:15 - Disabling Auth for all Resource Models
#laravel #nova #policies #laravelpolicies