How to Create Resource Modifiers & Resource Filters in Filamentphp - FilamentPHP for Beginners
HTML-код
- Опубликовано: 10 июл 2024
- 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: 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: filamentphp.com/docs/3.x/form...
📚 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: www.udemy.com/course/masterin...
💌 Newsletter
Sign up for my free weekly email newsletter: newsletter.codewithdary.com/
🔥 Resources
- Twitter: / codewithdary
- Instagram: / codewithdary
- Blog: blog.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
- TikTok: / 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
Dude thank you for this! Such a big help on understanding filament:)
Happy to help!!
awesome modifiers you just shown
Glad you like them
Very nice videos
Thanks!! :)
Nice job with explaining slug creation! You could also use reactive() modifier to create slug as you type title.
Thank you, interesting one!
Respect
Thank you
Nice Dary, i learn a lot of these video's.
Glad you like them!
Congratulations, the video has been very good, with very good details and very well explained, greetings.
Thank you very much, it's truly appreciated :)
🍻🍻🍻🍻
Thank you :D
thanks for sharing
Thank you for watching, Hamad :)
You are perfectoooo ❤
No no no, you are!
Thanks
Always happy when you watch, Gergely!
Hello, nice video! Ι would like to ask if it is possible to load a table. The table has a field "Year". Instead of showing all the records on load the default active filter is the current year. So in the end the table shows only the records that have the current year.
hello Dary , the live(onBlur:: false) doesn't enable live validation for me Way??
When onBlur is set to false, the component will not update when the input field loses focus.
is there way to stop the html validation attribute
Yes, there is a way to stop the HTML validation attribute. You can use the novalidate attribute in the form tag to disable HTML5 form validation.
Hi, first thanks for you filament videos. But watching you give helper text to toggle buttons hit a pet peeve of mine. I think most every knows what a toggle does. In my opinion, helper text should describe the result of the toggle, not enable or disable____. Assuming the toggle is not self-describing. Can't tell you how many times I see options for things that I have no idea what they do if I click on or off, but there's a helper text readily available telling me that the toggle turns this item on or off.
Other than that, I am appreciating your tutorials. They are a lot easier to digest than reading docs
Thank you! Sometimes I show things to show it, but I think you are right, the reasoning and usage behind it should be better sometimes! Thank you for your feedback, it's much appreciated.
#cfbr