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

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

  • @anderskozuch7838
    @anderskozuch7838 8 месяцев назад +1

    Dude thank you for this! Such a big help on understanding filament:)

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

    awesome modifiers you just shown

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

    Very nice videos

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

    Nice job with explaining slug creation! You could also use reactive() modifier to create slug as you type title.

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

      Thank you, interesting one!

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

    Respect

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

    Nice Dary, i learn a lot of these video's.

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

    Congratulations, the video has been very good, with very good details and very well explained, greetings.

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

      Thank you very much, it's truly appreciated :)

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

    🍻🍻🍻🍻

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

    thanks for sharing

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

      Thank you for watching, Hamad :)

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

    You are perfectoooo ❤

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

    Thanks

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

      Always happy when you watch, Gergely!

  • @user-cr3nm6gs8d
    @user-cr3nm6gs8d 9 месяцев назад

    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.

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

    hello Dary , the live(onBlur:: false) doesn't enable live validation for me Way??

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

      When onBlur is set to false, the component will not update when the input field loses focus.

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

    is there way to stop the html validation attribute

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

      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.

  • @jcc5018
    @jcc5018 7 месяцев назад +1

    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

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

      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.

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

    #cfbr