Roles & Permissions | Build Blog with Laravel, Livewire & Filament #13

Sdílet
Vložit
  • čas přidán 29. 09. 2023
  • Welcome to our laravel blog project series, in this comprehensive series we will build a blog from scratch using livewire 3 and filament 3.
    Today we are going to implement a simple roles and permissions setup and also cover how to prevent regular users from accessing our admin panel
    We will cover how to install and customize jetstream, create layouts, setup database migrations and models, display posts, use livewire 3 to create dynamic components without page reloads and more.
    Next Episodes (Playlist):
    • Build Blog with Larave...
    Html Template :
    github.com/yelocode/tailwind-...
    Project Code :
    github.com/yelocode/laravel-b...
    Filament Documentation :
    filamentphp.com/docs/3.x/pane...
    Free Livewire 3 Course Playlist :
    • Laravel Livewire 3 Cou...
    Livewire 3 website :
    livewire.laravel.com/
    If you would like me to make more livewire videos, please let me know by liking the video and commenting what you like to learn next.
    What is livewire:
    Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel. (Taken from Livewire Documentation)

Komentáře • 35

  • @user-yh1rn3fk4d
    @user-yh1rn3fk4d Před 5 měsíci +5

    06:40 - user filament-resource
    10:20 - user access panel method
    18:00 - laravel policies
    24:00 - removing functionality from roles
    24:20 - bulk actions
    30:45 - authorized user role button
    33:15 - wire:navigate issue fixed

  • @MindfulMomentsofficials
    @MindfulMomentsofficials Před 9 měsíci +1

    таких классных видосов по крипте я еще не видел) ну и вообще не ожидал услышать такие разговоры от девушки)))

  • @agneldominique352
    @agneldominique352 Před 9 měsíci +1

    Thanks for making such a thorough tutorial on this topic... looking for more advanced topics

  • @nazgyl
    @nazgyl Před 9 měsíci +1

    Hope you are in best form! Thank you, and welcome back

  • @MrOryly
    @MrOryly Před 9 měsíci +3

    Great job, as usual :-)
    I'm still learning and thanks to you, I like PHP more and more every day

    • @yelocode
      @yelocode  Před 9 měsíci

      Thanks for watching. Great to hear

  • @eng_mohsin
    @eng_mohsin Před 9 měsíci +2

    Great ❤ More every day 👍🏼

  • @ramaeisawi1006
    @ramaeisawi1006 Před 6 měsíci +1

    It is very useful. Thank you so much 🌸

  • @WEESPlayzZz
    @WEESPlayzZz Před 9 měsíci +1

    Saved my day ❤

    • @yelocode
      @yelocode  Před 9 měsíci

      Glad to hear that. Btw super thanks for the super like/sticker. I'm unable to see your comment with the super thanks to reply to it.

  • @protrag
    @protrag Před 9 měsíci +1

    Great video 👍

  • @user-yu5cx7px6p
    @user-yu5cx7px6p Před 4 měsíci +1

    Thanks Man

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

    thanks, great video! but is there someone here knows how to redirect or customize the logout page of filament. I can't find the file in apps/controllers/filament

  • @LeonelLopezBorbon
    @LeonelLopezBorbon Před 9 měsíci +1

    Thanks Master!!

    • @yelocode
      @yelocode  Před 9 měsíci +1

      Thanks for watching

  • @eramitgupta271
    @eramitgupta271 Před 9 měsíci

    Very nice 👍

  • @matinnoei2956
    @matinnoei2956 Před 4 měsíci

    thank you sir for this great tutorials,
    one more thing that I'm confused about is that how is redirecting to the proper route happening in this case? I mean how can I send the user to the user panel and admin to the Admin panel and what if we have 3 or more roles of people in our implementation?

  • @abdisaha2039
    @abdisaha2039 Před 7 měsíci

    I'm currently learning to create a veterinary clinic website, should I make customers/pet owners to fill in appointments, medical records, etc. on the front page or fill in on the filament panel?

  • @ousssika5359
    @ousssika5359 Před 9 měsíci +1

    thanks of everthing

    • @yelocode
      @yelocode  Před 9 měsíci

      Thank you for watching.

  • @HamadAbdulla_7
    @HamadAbdulla_7 Před 9 měsíci +1

    Thanks Boss 😍 i hope you good now

  • @bikerbreed
    @bikerbreed Před 8 měsíci

    Awesome video tutorial. Love from India.
    I have a question with respect to roles and permissions: can you make a video of how to navigate to different pages on login based on roles. Ex: User -> navigate him to home page, if Editor -> navigate him to page xyz and if admin -> navigate him to filament dashboar/ filament admin pane.
    I tried to do it my self but confused with using Jetstream and filament manages it own routes. your thoughts and comments will be helpful. if you make a video about it its great!
    Thank you

  • @romelneri4701
    @romelneri4701 Před 6 měsíci

    This is great sir., i just have question, how can we add the pxlrbt/filament-excel export in the policy? thank you.
    ex:
    public function export(User $user, Item $item): bool
    {
    return $user->isAdmin();
    }

  • @einnlleinhatt_
    @einnlleinhatt_ Před 8 měsíci

    Is it better to separate the role or this ?

    • @yelocode
      @yelocode  Před 8 měsíci

      Do you mean separate to different permissions?
      if so, that depends on your applications, having permissions gives you more flexibility but requires more development time and adds complexity. If your app is simple, you can just use roles, but for complex app you'll have to implement a permission based system or use something like spatie permissions library.

  • @micheldupont4918
    @micheldupont4918 Před 3 měsíci

    Pourquoi mettre une "string" et non pas un type "enum" pour les rôles ? Why don't you choose an enum for roles ?

  • @kincortezao2024
    @kincortezao2024 Před 6 měsíci

    Why not create a table Roles and create Roles with permission inside? You can control in frontend, not necessary change code to create roles