How to Setup The Global Search 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 will cover the steps necessary to set up resource and global search in FilamentPHP. We will explain the differences between the two types of searches and show you how to enable them for your application. We will also discuss how to define the searchable columns for your models, override default methods, and add search key bindings. By the end of this tutorial, you will have a solid understanding of how to implement powerful search functionality in your FilamentPHP admin panel.
📚 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:04 - recordTitleAttribute
03:01 - getGloballySearchableAttributes
04:13 - getGlobalSearchResultDetails
06:15 - getGlobalSearchEloquentQuery
07:59 - globalSearchResultsLimit
08:54 - globalSearchKeyBindings
#laravel #filamentphp #hostinger #codewithdary
Thanks!
Thank you for watching buddy
👌 Very good
Thankyou!!
Good job Dary
Learning filament from your easy and well described way , though we're going slow 😂
Unfortunately, I can't keep everyone happy :(
Amazing video series.❤❤
Thank you
i have a question suppose there is a two types of login head_admin and organization login i dont want the resources of head_admin to be searchable in organization login please guide me
Make a ternary operator where you return back searchable columns :)
Error :
ksort(): Argument #1 ($array) must be of type array, string given
Please help me..
At what point did this error happen?
Thank you, this is a fantastic tutorial, I would like to tell you that when I edit a product the name and sku fields are unique, in the global search example I have to change both fields, but in the video I see that you only change the description I have reviewed the previous video and I do not see any difference, thanks and regards.
->unique(ignoreRecord: true)
I think I accidentally removed adding ignoreRecord:true later when editing the tutorial!
appreciate it, if you could show us how to change the layout to RTL would be a great help.
That won't unfortunately happen in this course, but it's definitely a topic I want to cover in the future!
Respect
Thank you
it is possible to add logic in filament PHP, like for example add a extra button and add a functionality or is just for cruds?
It is possible to add logic in Filament PHP beyond CRUD functionality. You can customize and extend Filament's built-in functionality to include additional features and behaviors by adding your own components.
Please make a video on rules and permission with filamentPHP.
That won't unfortunately happen in this course, but it's definitely a topic I want to cover in the future!
#cfbr