06 - User Authorization in Laravel

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 29

  • @liakatbiswas9432
    @liakatbiswas9432 หลายเดือนก่อน +1

    Though It is an old Tutorial, I have learned much from this. I am eagerly waiting to have more from you for Laravel 11. Thanks

  • @ABEDALLAHGOZAH
    @ABEDALLAHGOZAH ปีที่แล้ว

    To be honest this is the best 11 minutes worth to watch

  • @lahoucineoldakdim7778
    @lahoucineoldakdim7778 ปีที่แล้ว +1

    Thanks mohamed.
    For checking two moleds i prefer to use this:
    $user->is($post->user);
    Or:
    $user->isNot($post->user);

  • @anarbairam
    @anarbairam 2 หลายเดือนก่อน

    Adamsın adaaaaam! Great explanation, simple and direct to the point!

  • @GreatCaleb
    @GreatCaleb 3 ปีที่แล้ว +1

    Thank you sir.. your explanation is easy to understand.

  • @RehmanKhan-zv2rl
    @RehmanKhan-zv2rl 3 ปีที่แล้ว +1

    Hey Sir! that's a great effort and a great opportunities for those who wants to learn laravel. Thanks,

    • @themsaid
      @themsaid 3 ปีที่แล้ว

      You're welcome :)

  • @developer_sagor
    @developer_sagor 3 ปีที่แล้ว +4

    Thanks sir, it's was great video and it's very easy to understand. Thank you very much :)

  • @debjit21
    @debjit21 3 ปีที่แล้ว +2

    Awesome. Please add test (API, web) and sanctum

  • @ossamaelidrissi2624
    @ossamaelidrissi2624 2 ปีที่แล้ว

    Thanks Mohamed From Morocco

  • @ArjonJasonCastro
    @ArjonJasonCastro 3 ปีที่แล้ว +1

    Hi Mohamed,
    Thank you and to the Laravel Team for this great video.
    Btw I sent a DM for you in Discord. I hope it is alright :-)

    • @themsaid
      @themsaid 3 ปีที่แล้ว +1

      Hey. I don't open Discord a lot :) Catch me on twitter @themsaid

    • @ArjonJasonCastro
      @ArjonJasonCastro 3 ปีที่แล้ว

      @@themsaid Yeah. I also sent the message in your twitter as well ;-)

  • @narens9261
    @narens9261 ปีที่แล้ว

    Thank you, great tutorial

  • @rezamortezaie5377
    @rezamortezaie5377 3 ปีที่แล้ว

    Thank you a lot for your clear and understandable videos. I have a question. With many to many relationships between an Author and Tag models, how to authorize an Author to update tags in policy?

    • @rezamortezaie5377
      @rezamortezaie5377 3 ปีที่แล้ว

      For example, is this right? $author->id === Tag::with('author')->pluck('id'); ??

  • @vlauciani
    @vlauciani 3 ปีที่แล้ว

    Thank you very much for this great video.
    Could you explain what is the best practice to use 'tokenCan()' in combination with Gate and Policy?

  • @mohamadcheaib
    @mohamadcheaib 3 ปีที่แล้ว

    Is their any way to use gates directly on routes while using resource routes, or we should check each gate inside the controller?

  • @Meinungsmacher
    @Meinungsmacher 2 ปีที่แล้ว

    thank you

  • @ArjonJasonCastro
    @ArjonJasonCastro 3 ปีที่แล้ว

    Hi Mohamed,
    Sorry to message you here, but, I replied to you on our Twitter conversation. Thanks a lot. 😊

  • @GergelyCsermely
    @GergelyCsermely 3 ปีที่แล้ว +1

    Thanks

  • @lyawileh.a8741
    @lyawileh.a8741 2 ปีที่แล้ว

    Cool, descriptive

  • @mahmudulhasan1360
    @mahmudulhasan1360 3 ปีที่แล้ว

    Thanks a lot, bro.

  • @myosotisalderson
    @myosotisalderson 3 ปีที่แล้ว

    Thank you :)

  • @galiathussaga2633
    @galiathussaga2633 2 ปีที่แล้ว

    Hi sir can you make a tutorial how to create a reward Points system. The new user will have a default point and the admin can give them points and the user will use the point to redeem a item and also display total points.

  • @mzeeshanzafar28
    @mzeeshanzafar28 ปีที่แล้ว

    Am I the only one or someone else also noticed the "son of a beach" drawing in the background ?
    😂

  • @hiajayy
    @hiajayy 3 ปีที่แล้ว

    Nice.

  • @ilyasszamouri
    @ilyasszamouri 2 ปีที่แล้ว

    The explanation of whether the user is admin is a little big foggy. Let me explain it the user should have a column named role. If you already has the migration up and running just do this: php artisan make:migration adding_role_to_users_table --table=users then define the role $table->boolean('is_admin'); like so and if you'd like to have multi roles add the role column as a string then think of keys for each role name.go to the fillable and add the role. Now back to the PostPolicy you check whether the role is Admin or not or what ever role you want to check.

  • @dmitriykret8938
    @dmitriykret8938 2 ปีที่แล้ว

    +