How to Setup The Global Search 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 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: 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:04 - recordTitleAttribute
03:01 - getGloballySearchableAttributes
04:13 - getGlobalSearchResultDetails
06:15 - getGlobalSearchEloquentQuery
07:59 - globalSearchResultsLimit
08:54 - globalSearchKeyBindings
#laravel #filamentphp #hostinger #codewithdary