How to Create Resource Modifiers & Resource Filters in Filamentphp - FilamentPHP for Beginners
Special thanks to Hostinger for sponsoring this video. Hostinger is an incredible web hosting provider where you can set up shared hosting, cloud hosting, VPS hosting, email hosting, and SSL certificates. Hostinger has made a name for itself due to its fast load times, simplicity, free domains, and powerful servers. Here’s my affiliate link for 10% off: https://www.hostinger.com/codewithdary
In this tutorial, we explore the use of resource modifiers and filters in FilamentPHP. Resource modifiers allow us to tailor the user interface to make it more intuitive and user-friendly, while resource filters enable us to filter data in a table based on specific criteria. We cover a variety of modifiers, including form modifiers such as required fields and live validation, and table modifiers such as searchable and sortable columns. We also create custom filters using the TernaryFilter and SelectFilter classes.
🔗 Resources
- Regex: 'regex:/^\d{1,6}(\.\d{0,2})?$/'
- Fileupload docs: https://filamentphp.com/docs/3.x/forms/fields/file-upload
📚 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:03 - required()
02:05 - live()
02:50 - unique()
03:09 - disabled()
03:30 - dehydrated()
04:01 - unique() with arguments
04:31 - afterStateUpdated()
06:34 - label()
07:44 - numeric() & rules()
09:15 - minValue() & maxValue()
10:04 - helperText()
10:23 - default()
11:46 - directory(), preserveFileName(), image() & imageEditor()
13:23 - Table Modifiers
16:34 - Resource Filters
#laravel #filamentphp #hostinger #codewithdary