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

Комментарии • 25

  • @HamadAbdulla_7
    @HamadAbdulla_7 10 месяцев назад +2

    Thanks!

    • @codewithdary
      @codewithdary  10 месяцев назад

      Thank you for watching buddy

  • @Maystro_eg
    @Maystro_eg 10 месяцев назад +2

    👌 Very good

  • @FaizanAmin_Faizi
    @FaizanAmin_Faizi 10 месяцев назад +2

    Good job Dary
    Learning filament from your easy and well described way , though we're going slow 😂

    • @codewithdary
      @codewithdary  10 месяцев назад +1

      Unfortunately, I can't keep everyone happy :(

  • @FindWebX
    @FindWebX 10 месяцев назад +1

    Amazing video series.❤❤

  • @subhashreddy4624
    @subhashreddy4624 9 месяцев назад +1

    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

    • @codewithdary
      @codewithdary  9 месяцев назад

      Make a ternary operator where you return back searchable columns :)

  • @AfdhalMahdi
    @AfdhalMahdi 4 месяца назад +1

    Error :
    ksort(): Argument #1 ($array) must be of type array, string given
    Please help me..

    • @codewithdary
      @codewithdary  4 месяца назад

      At what point did this error happen?

  • @anmasa
    @anmasa 10 месяцев назад +1

    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.

    • @omartrevi
      @omartrevi 10 месяцев назад +1

      ->unique(ignoreRecord: true)

    • @codewithdary
      @codewithdary  10 месяцев назад

      I think I accidentally removed adding ignoreRecord:true later when editing the tutorial!

  • @user-ej3yq1pq7p
    @user-ej3yq1pq7p 10 месяцев назад +1

    appreciate it, if you could show us how to change the layout to RTL would be a great help.

    • @codewithdary
      @codewithdary  10 месяцев назад

      That won't unfortunately happen in this course, but it's definitely a topic I want to cover in the future!

  • @vugarkhalil
    @vugarkhalil 10 месяцев назад +1

    Respect

  • @Icaro204
    @Icaro204 10 месяцев назад +1

    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?

    • @codewithdary
      @codewithdary  10 месяцев назад +1

      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.

  • @user-ej3yq1pq7p
    @user-ej3yq1pq7p 10 месяцев назад +1

    Please make a video on rules and permission with filamentPHP.

    • @codewithdary
      @codewithdary  10 месяцев назад

      That won't unfortunately happen in this course, but it's definitely a topic I want to cover in the future!

  • @aakashdesai149
    @aakashdesai149 10 месяцев назад

    #cfbr