Defining Our Migrations, Models & Relationships for FilamentPHP - FilamentPHP for Beginners
In this tutorial, we're going to walk you through the process of building the backend for an ecommerce site using FilamentPHP. The focus of this episode is on migrations and models, and we'll explain how to create them in Laravel before using them in FilamentPHP. The tutorial covers the creation of migrations and models for categories, brands, customers, products, and orders, as well as the relationships between them. We'll also include tips on using the fillable property over the guarded property and the importance of defining relationships between models. By the end of the tutorial, you'll have a solid understanding of how to create the necessary migrations and models for a FilamentPHP ecommerce site.
📚 New Udemy Course
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 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
💌 Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/
🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Blog: https://blog.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary
⌛Timestamps
00:00 - Introduction
01:05 - Creating Models & Migrations
02:16 - Defining our Migrations
12:59 - Defining the fillable property
16:03 - Defining Relationships
24:04 - Outro
#laravel #filamentphp #hostinger #codewithdary