How to Validate Resources in Laravel Nova | Validation in Nova | Laravel Nova for Beginners
This video will show you how you could validate resources in Laravel Nova. In Laravel Nova, a resource comes with creation and update pages which needs to be validated. Instead of adding one global validation through the rules() method, Laravel allows you to apply the updateRules() method, which define rules that only apply when a Laravel Nova Resource is being updated. Laravel Nova also allows you to apply the createRules() method, which define rules that only apply when a Laravel Nova Resource is being created.
📚 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
📋 Table of Content
00:00 - Introduction
01:05 - The rules() Method
01:50 - rules() on Update
3:20 - rules() on Create
#laravel #nova #laravelnova #validation