Laravel 11 Breeze Multi Authentication tutorial

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 36

  • @manishkrmaurya
    @manishkrmaurya 9 місяців тому +3

    Hi, could you continue 2nd video for crud with add, edit, delete & list. if u want

  • @afdevs3054
    @afdevs3054 3 місяці тому

    That was perfect dear sir it was really helpful

  • @nitrox-car
    @nitrox-car 8 місяців тому

    Hello, how do I fix this error App\Http\Middleware\Normal::handle(): Return value must be of type Symfony\Component\HttpFoundation\Response, none returned?

  • @nzproduction8919
    @nzproduction8919 9 місяців тому

    I got the error: Target class [app\Http\Middleware\Admin] does not exist. Any help is appricated

  • @alkadoHs
    @alkadoHs 10 місяців тому +4

    Thanks mr for a nice explanations but why making so many middleware just to redirect user based on the role?
    I think you had to make 1 middleware which can redirect user to a specific route based on his role.
    Just my opinion..

    • @laraphant
      @laraphant  10 місяців тому +2

      Thanks, I agree just one middleware would do it

  • @zackyhabibie3733
    @zackyhabibie3733 10 місяців тому

    do u have video about deferences about livewire and livewire-funcional? and how to setting/using laravel-mongodb as the database... please

    • @laraphant
      @laraphant  10 місяців тому

      when using volt, livewire option is the class based api (use of classes), while livewire-functional is the functional based api . On the issue of using mongo db you can check out this article www.mongodb.com/compatibility/mongodb-laravel-integration

  • @kashthrob
    @kashthrob 2 місяці тому

    worked , thank you . but anytime i add default: return redirect('/') an error shows : Symfony\Component\ErrorHandler\Error\FatalError
    A void function must not return a value

    • @laraphant
      @laraphant  2 місяці тому

      The error is caused by a void return type in your function.

  • @renznormanpalma6312
    @renznormanpalma6312 9 місяців тому

    can I make a 1 middleware for all? all the codes are almost the same for the middleware you've created.

    • @laraphant
      @laraphant  8 місяців тому

      Yes, that is the recommended way

  • @babarqb
    @babarqb 10 місяців тому +4

    Very nice. I have one question why three separate middleware?

    • @laraphant
      @laraphant  10 місяців тому

      Welcome, No specific reason actually, just what I thought at the moment. I get your point, one was enough

  • @dmdk8301
    @dmdk8301 9 місяців тому

    Why do u need 3 different middleware files with same content?
    Isnt it easier to make one - RoleMiddlleware or whatever and make the same?

    • @laraphant
      @laraphant  9 місяців тому

      I agree with you

  • @carlosmontiel7078
    @carlosmontiel7078 9 місяців тому

    I dont understand when does it construct the database, when does it creates the database, should I create it on mysql first? with the name of the project? Sorry im new to laravel and looks very very superior.

    • @carlosmontiel7078
      @carlosmontiel7078 9 місяців тому

      $ php artisan migrate, just do it so it runs the query

    • @laraphant
      @laraphant  9 місяців тому +1

      The default database is SQLite and it's preconfigured also migrations for the default tables are automatically done. If you want to use myql instead you can change the database configurations in the .env file. Glad you like it

    • @raviel498
      @raviel498 9 місяців тому +1

      When you do : php artisan migrate
      Laravel create the database automatically.
      Now if you want to change the database informations, like the name, or the password, you have to go to the " .env " file.
      And now you change the values.

    • @carlosmontiel7078
      @carlosmontiel7078 9 місяців тому

      @@raviel498 Thanks raviel, I was struggling with that, and I already found that the same day on stackoverflow, I appreciate your comment

    • @carlosmontiel7078
      @carlosmontiel7078 9 місяців тому

      @@laraphant It's getting harder to make all the code for me hehehe, but thanks for all my man. you big.

  • @gyangach7493
    @gyangach7493 10 місяців тому

    i use this but in blade code does not work... i use simple blade

    • @laraphant
      @laraphant  10 місяців тому

      Your approach will definitely be different in this case

  • @artofeugeneseguiban2773
    @artofeugeneseguiban2773 10 місяців тому +1

    Can you continue the google drive series 🥹👈

  • @elmorabetachraf4103
    @elmorabetachraf4103 8 місяців тому

    Thank you so much

  • @han07013
    @han07013 8 місяців тому

    Beautiful

  • @lowlo417
    @lowlo417 10 місяців тому

    Thanks a lot man

  • @derpina8330
    @derpina8330 6 місяців тому +1

    Are you Kenyan, by the way?

  • @giatechindo
    @giatechindo 10 місяців тому

    you safe me brother, tks

  • @hadooyy7307
    @hadooyy7307 10 місяців тому +1

    thx man

  • @SalakotPhilippines
    @SalakotPhilippines 9 місяців тому +1

    Thank you @LaraPhat