Laravel 7 redirect different pages users after login. Admin and User login redirect different page.

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

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

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

    Thanks a Lot💓
    If I found you earlier, I wouldn't waste the entire day!

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

    i am 1k like, thanks for the amazing video

  • @83shahzada
    @83shahzada 4 ปีที่แล้ว +1

    Awesome tutorial. Really informative. Thanks a lot sharing your knowledge.

  • @amjadjavid5055
    @amjadjavid5055 4 ปีที่แล้ว

    @Code Fisher Sir in 17:11 in the video u specify only one role and our requirement is to customize register view i.e add radio buttons for two roles one is for Client and the other is for User and if a user click on client then to redirect on client page and if he click on user then to redirect on User Page.

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

    Good and clear explanation.Can you please explain how i can create Super administrator & administrator user from front end.

  • @renielmallari3236
    @renielmallari3236 4 ปีที่แล้ว +2

    Hi sir, can you do a tutorial using CRUD in laratrust, your tutorial is really a great help sir.

  • @franciscobressa
    @franciscobressa 4 ปีที่แล้ว +2

    just wanna to say thanks to your incredible tutorial. You helped me a lot

  • @HarisPervaiz
    @HarisPervaiz 4 ปีที่แล้ว

    thankyou so much, i am really new to laravel and was finding solution have one login page with different user levels, this exactly what i was looking for, got some of my concepts cleared.
    Thankyou
    Looking forward learning from you more

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

    Thank you very much brother it was very simple and clear I'm happy to subscribe

    • @CodeFisher
      @CodeFisher  11 หลายเดือนก่อน

      Thanks :)

  • @n.farhanasalahudin5439
    @n.farhanasalahudin5439 4 ปีที่แล้ว

    Thank you so much... I try login as admin but end up in user page >.< Then saw your tutorial which is a really big help for me. So, i just need to put admin and user in different page. Thanks again. :3

  • @stefancaky2725
    @stefancaky2725 4 ปีที่แล้ว

    helo. koszi szepen.

  • @-shu3aibfilm704
    @-shu3aibfilm704 2 ปีที่แล้ว

    how to make the auth with out using laratrust ??? please respond fast ty
    great job and thx for video

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

    Great video
    love from Afghanistan

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

    Thank you for the very useful video

  • @dhamkith
    @dhamkith 4 ปีที่แล้ว

    Good day

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

    Hi Sir ! Hope you fine ! At 9:46 (After installation of laratrust) : Adding LaratrustUserTrait make an error... can I continue with the video or how can I fix this error please ? 😰😥😓

  • @AdilKhan-vf2es
    @AdilKhan-vf2es 3 ปีที่แล้ว

    Great tutorial. Enjoyed it

  • @faizanbashir4896
    @faizanbashir4896 4 ปีที่แล้ว

    thanks so much for a great tutorial, is Laratrust is also available for version 5.8?? with the same method which is explained in video

  • @BudiSantoso-er6cq
    @BudiSantoso-er6cq 4 ปีที่แล้ว

    Thank you sir, God Bless You..

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

    Thank you so much for the video. Can you please upload the same for laravel 8? I'm starving for your video!!!

  • @caliskanmu
    @caliskanmu 4 ปีที่แล้ว

    thanks for the video, what is your idea when you compare lara trust and laravel permissions packages?

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

    thanks sir...sir but while a user register is registering its showing only user how i can register a user a admin..

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

    Very Helpful. Thank you!

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

    Awesome tutorial, thank you😆

  • @md.sajidulhaque9243
    @md.sajidulhaque9243 3 ปีที่แล้ว +1

    u didn't show about the new register, and the whole thing was about predefined user and admin, what if I want to make a new admin and user?

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

      Same problem, I can only make what is the default. I tried to make AdminRegisterController, but I can't create admin. Too few arguments error

  • @sightskill904
    @sightskill904 4 ปีที่แล้ว

    sir please make 3rd part of this video how to utilize this on admin panel like manage user roles update user delete user allow permisson with same laratrust...

  • @NeerajSharma-px8js
    @NeerajSharma-px8js 4 ปีที่แล้ว

    Thank you sir, It really helped me a lot

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

    you're the best brother thanks

  •  ปีที่แล้ว

    why dont i have a laratrust_seeder.php

  • @mrsahel1569
    @mrsahel1569 4 ปีที่แล้ว

    Nice, thanks so much

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

    Thank you very much. I needed it :)

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

    I have a question, but it has little to do with this video, if i use gates, is required also to have route middleware for separate admin and user areas?

  • @valeriasua02
    @valeriasua02 4 ปีที่แล้ว

    Thank you, it was so helpful

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

    How can I show login form if I type path /admin instead of :
    forbidden(User does not have any of the necessary access rights.)

    • @JohnAwalitravels
      @JohnAwalitravels 4 ปีที่แล้ว

      @@CodeFisher thank you for your reply its working fine

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

    Awesome! Thanks bro!

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

    i am getting an error when i try to install laratrust sir,
    this is what i get
    ./composer.json has been updated
    Running composer update santigarcor/laratrust
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - santigarcor/laratrust[5.0.0, ..., 5.0.x-dev] require illuminate/auth ~5.2
    -> found illuminate/auth[v5.2.0, ..., 5.8.x-dev] but these were not loaded, like
    ly because it conflicts with another require.
    - Root composer.json requires santigarcor/laratrust 5.0.* -> satisfiable by
    santigarcor/laratrust[5.0.0, ..., 5.0.x-dev].
    Installation failed, reverting ./composer.json and ./composer.lock to their orig
    inal content.

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

    how to create different login and register page for 2 users as like for student and a teacher

    • @q4h4r26
      @q4h4r26 4 ปีที่แล้ว

      found any convenient solution yet ? i'm going the bitfumes route. bitfumes.github.io/laravel-multiauth/middleware.html

    • @strikerron2252
      @strikerron2252 4 ปีที่แล้ว

      Create two different welcome page for teacher and student. And you have to create new tables for it

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

    Thank you very much!

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

    @Code Fisher.. Nice tutorial am really looking forward to using it but i have a challenge. I have followed the video minute by minute but i dont seam to get php artisan db:seed to be working.
    It tells me that Target class [LaratrustSeeder] does not exist.
    Please help me.

    • @mustaphaah3248
      @mustaphaah3248 4 ปีที่แล้ว

      same problem, any solution?

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

      Is there any solution regarding this? Im having the same problem too

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

      Database is not getting seed in my case??
      Any idea please help

  • @p.a.sudayanga7308
    @p.a.sudayanga7308 4 ปีที่แล้ว

    sir thank you so much

  • @danielmarulisitohang433
    @danielmarulisitohang433 4 ปีที่แล้ว

    Thanks you so much...

  • @ChoszerPictures
    @ChoszerPictures 4 ปีที่แล้ว

    I want to stop a logged in user from visiting the login page again, even by entering the URL after he's logged in, it should redirect to another page.
    Hence once logged in, you can't view the login page again, until you log out

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

    Sir i'm not receiving data in users table after this command php artisan db:seed.
    but i'm receiving data correctly in other tables.

    • @mukeshsahu9743
      @mukeshsahu9743 4 ปีที่แล้ว +2

      struggling with the same problem

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

      @@mukeshsahu9743 ohoo if you find any way please also inform me

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

      @@mlatifvlogs hi if I have the same problem too but i have fixed it. All you need to do is change "true" in the create_user in "config\laratrust_seeder.php" .

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

      @@moonlightteaa Thankyou so much this helps me a lot

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

    how to print role that attached into an account to my view homepage? Auth::user()->roles?

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

    bonjour pour moi il créé les rôles mais pas les utilisateur à la base de donne avec les données

  • @Satheeshkumar-dv1uu
    @Satheeshkumar-dv1uu 4 ปีที่แล้ว

    But why another package !!!.
    We can create auth system without any packages then its easy to customise and don't want to see their document each time we customise our code
    as well as if we build our own code we can modify without any hesitation
    For example laravel 8 use tailwind css and livewire which is cool if you have enough knowledge of laravel auth system
    so my suggestion let's build your own code with laravel guards 🙂

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

    thankkkkkkkkkkkkksssssssssssssssssssssssssssssssssssssssssss

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

    generate seed files laratrust.santigarcor.me/docs/6.x/usage/seeder.html#seeder-configuration-file

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

    after i run php artisan db:seed my table user not have 4 record at the table. can you help me to solve this problem? thank u

    • @alejandeodekiev8592
      @alejandeodekiev8592 4 ปีที่แล้ว

      i have the same problem

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

      ​@@alejandeodekiev8592 guys, before run php artisan db:seed check in config/larastruct_ seeder.php 'create_users' => true, it will populate the user table

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

    my laratrust_seeder.php is missing ... is this error ? or something ?? please help

  • @vishalsirka6397
    @vishalsirka6397 4 ปีที่แล้ว

    sir, did you use middleware. to filter multi user

  • @JustinNgHC
    @JustinNgHC 4 ปีที่แล้ว

    Hi why is my users table not being seeded? Please advise.

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

    Sir, I'm Using Laravel version 8 with laravel 7 auth. but it's not installing

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

    register user is not working?

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

    thanks

  • @medatf9986
    @medatf9986 4 ปีที่แล้ว

    thank u soo much

  • @ahamedthilsan2700
    @ahamedthilsan2700 4 ปีที่แล้ว

    sir, how do I register another Super administrator?

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

    would this works on laravel 8?

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

    sir how to pass data from user to admin?

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

    will this work with fortify?

  • @hungnguyenthien9416
    @hungnguyenthien9416 4 ปีที่แล้ว

    I was not created
    'supperadministrator' user, 'adminitrator' user and 'user' user in 14:50 and 15:21 . Can you help me ? please (I installed Laravel version 7.17.2)

    • @chrisdumezweni5125
      @chrisdumezweni5125 4 ปีที่แล้ว

      @@CodeFisher I have the same problem, i ran "php artisan laratrust:seeder". Not working, empty users table.

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

      I had the same problem, by default create_user in "config\laratrust_seeder.php" is on false, change it to true

  • @matthewimadiyi6943
    @matthewimadiyi6943 4 ปีที่แล้ว

    Hello sir, thanks for the lesson, tried running php artisan laratrust:seeder command
    But get an error: failed to open stream: No such file or directory
    Kindly help point me to what i might be doing wrong.
    Thank you so much.

    • @2tuxgtv177
      @2tuxgtv177 4 ปีที่แล้ว

      I encountered this problem, I installed the laratrust version 6.x. The problem is that its not compatible with the composer/laravel that you are currently using. What I did was I downgraded the Laratrust installer into 5.1/5.2 and it worked perfectly fine. I was able to create the Laratrust seeder.

    • @matthewimadiyi6943
      @matthewimadiyi6943 4 ปีที่แล้ว

      @@CodeFisher Thanks

  • @saidbenhmed7884
    @saidbenhmed7884 4 ปีที่แล้ว

    what about laravel 8 ? any answers ?

  • @ermetanyoPh
    @ermetanyoPh 4 ปีที่แล้ว

    Good day sir, Do you have Laravel 7 Vue.Js CRUD tutorial?

  • @amjadjavid5055
    @amjadjavid5055 4 ปีที่แล้ว

    Hi, Sir My requirement is to add role on registration i.e Client, User etc this is Possible or Not???

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

      @@CodeFisher Sir in 17:11 in the video u specify only one role and our requirement is to customize register view i.e add radio buttons for two roles one is for Client and the other is for User and if a user click on client then to redirect on client page and if he click on user then to redirect on User Page.

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

    this is test comment for my website

    • @CodeFisher
      @CodeFisher  11 หลายเดือนก่อน

      Good to know :)

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

    Can we do that with Fortify?

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

    у вас странный английский вы с какой страны

  • @cali4484
    @cali4484 4 ปีที่แล้ว

    Im a simple human . I see a double adv in the middle of a video .. i hit dislike