Filament Roles: Single vs Multiple Panels Example

Sdílet
Vložit
  • čas přidán 10. 09. 2024

Komentáře • 7

  • @PabloZagni
    @PabloZagni Před 2 měsíci

    Great! Great! Great!!!!!

  • @Voltra_
    @Voltra_ Před 2 měsíci +1

    At 7:30 the boolean checks are wrong, it should be
    *in_array($panel->getId(), ['my-id', 'auth'])*
    instead of
    *$panel->getId == 'my-id' || 'auth'*

  • @parijke
    @parijke Před 2 měsíci

    Interesting. How would you handle same kind of functionality but where users can have both roles. In example something like air BnB where I can rent out my place, but can book someone else's as well?

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci +1

      When I was trying to recreate booking com functionality, I researched and noticed that it's NOT possible. You have to have separate accounts as a guest and as a property owner.

    • @parijke
      @parijke Před 2 měsíci

      @@FilamentDaily thx Povilas

  • @Maystro_eg
    @Maystro_eg Před 2 měsíci

    Hi Povilas, How to access selected table records from ListPage in filament

    • @krekas
      @krekas Před 2 měsíci

      Use your ide to find the method. It's something like getSelectedRecords