How to create Custom Login Registration in Laravel

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 156

  • @skc-j
    @skc-j 10 місяців тому +7

    I love south indian programming tutorials, very clear and understandable.

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

      Happy that the video helped you

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

    Great Tutorial. I love the gentle pace and clear explanation

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

      Glad it was helpful!

  • @kovzor128
    @kovzor128 Місяць тому +1

    Thanks for the detailed tutorial, i understood this framework really well! Keep up the good work brada!

  • @intro_carlequin9913
    @intro_carlequin9913 4 місяці тому +1

    Как же этот индус спасает меня перед экзаменом.❤❤❤

  • @rovergajan2944
    @rovergajan2944 7 місяців тому

    Thank you so much for this amazing tutorial! Your explanations are clear, concise, and easy to follow, making it perfect for beginners like me

  • @DavidAshby1
    @DavidAshby1 6 днів тому

    Excellent tutorial. Thanks.

    • @CodesEasy
      @CodesEasy  5 днів тому +1

      Glad it was helpful!

    • @DavidAshby1
      @DavidAshby1 5 днів тому

      @@CodesEasy Have you done a tutorial on middleware in Laravel 11+ ?

  • @wardahshahid2758
    @wardahshahid2758 5 місяців тому +1

    Thankyou for the tutorial!
    Make more projects as a beginers could practice.

  • @ckchia4788
    @ckchia4788 Рік тому +3

    It's an amazing lac=ravel tutorial! Clear and easy to understand!

  • @UtterVids
    @UtterVids День тому +1

    Nice work bro

    • @CodesEasy
      @CodesEasy  22 години тому

      Happy that the video helped you

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

    Amazing video. Would love to see you making a Laravel course.

  • @prashanttamang2728
    @prashanttamang2728 Рік тому +2

    perfect explanation with peace video. I was deeply dragged into your videos while learning. Thank You for great video

    • @CodesEasy
      @CodesEasy  Рік тому

      Happy that the video helped you

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

    Man you are the best teacher

  • @mehnazaysha1595
    @mehnazaysha1595 11 місяців тому +1

    Amazing tutorial! Thank you so much

    • @CodesEasy
      @CodesEasy  11 місяців тому

      Glad it was helpful!

  • @blakspot2721
    @blakspot2721 Рік тому +2

    god bless you. thank you so much. this is so helpful.

  • @awery120
    @awery120 7 місяців тому

    Thank you a lot! I got everything and have done my work properly :3

  • @HATIMPATEL48
    @HATIMPATEL48 11 днів тому

    Thank you so much sirr❤

  • @fatimabouzid7204
    @fatimabouzid7204 Рік тому +1

    Thank you so much , this is so helpful

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

    you are great i m your student

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

      Happy you like the video

  • @CodesEasy
    @CodesEasy  Рік тому +4

    ​Feel free to ask all your doubts here

    • @CodesEasy
      @CodesEasy  Рік тому

      We will respond to all your comments

    • @f.y.i.3012
      @f.y.i.3012 Рік тому

      sir I follow all codes but the when I register, they do not go to login page.

    • @southbridgtech
      @southbridgtech Рік тому

      Hi..How to handle routes for multiuser/multirole routes? like if we have admin, regular user, encoder etc.

    • @rizanmrm
      @rizanmrm Рік тому

      Can you do a video to give difference access to difference user types.

  • @briantebeck2861
    @briantebeck2861 8 місяців тому +1

    Awesome 🎉

  • @neodiy
    @neodiy Рік тому +1

    after type php artisan serve

    • @CodesEasy
      @CodesEasy  Рік тому

      If you are doing it on a local machine you will get a link with the localhost address.

    • @neodiy
      @neodiy Рік тому

      @@CodesEasy its working now after redo another php artisan serve command again

  • @itejash6296
    @itejash6296 Рік тому +2

    please create more tutorials on laravel

    • @CodesEasy
      @CodesEasy  Рік тому +3

      Yes, a complete food delivery app coming soon using Laravel and Android

  • @neodiy
    @neodiy Рік тому +1

    Why don't i have the Blueprint.php file when i press CTRL + mouse on the time stamp?

    • @CodesEasy
      @CodesEasy  Рік тому +1

      You might have missed some thing. Watch the video again

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

    Thank you

  • @JunzFundador
    @JunzFundador 5 місяців тому +1

    what's your IDE ? looks so nice

  • @felixamenya4554
    @felixamenya4554 Рік тому +1

    awesome stuff

    • @CodesEasy
      @CodesEasy  Рік тому

      Happy that the video helped you

  • @shahzadsaeed-l6d
    @shahzadsaeed-l6d 9 місяців тому +1

    Thanks

  • @mosesdwana9555
    @mosesdwana9555 16 днів тому +1

    What version of laravel are you using sir?

    • @CodesEasy
      @CodesEasy  16 днів тому

      Latest version at the time of making that video. Not sure exactly which. Most probably 10

  • @PutraDamarwulan
    @PutraDamarwulan Рік тому +1

    gue dukung terus bang

  • @sharonlawai9422
    @sharonlawai9422 Рік тому +1

    Are you using the android studio software?

  • @abdalrahmanehab7468
    @abdalrahmanehab7468 5 місяців тому

    Can i do the registration and login in the same page ?
    Like 2 forms on the same page ?

  • @sqfdjgslkfdjgs
    @sqfdjgslkfdjgs Рік тому +3

    Amazing video, you have really explained all steps very well. I am getting an error where you declare $credentionals for login ( $credentials = $request->only(keys:'email', 'password'); ). As soon when I pass the second key 'password' , visual coder underlines it red as an error. Error says " Cannot use positional argument after name argument" PHP(PHP2423) . I have installed Laravel 10.

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Visual studio code might not be able to understand it. I would recommend PHPStorm for php related stuffs

    • @sqfdjgslkfdjgs
      @sqfdjgslkfdjgs Рік тому +1

      I fixed the error using Chat GPT. We can pass the values using array without using the word "key". So the line
      $credentials = $request->only(keys:'email', 'password'); becomes
      $credentials = $request->only(['email','password']);

    • @sqfdjgslkfdjgs
      @sqfdjgslkfdjgs Рік тому

      @@CodesEasy please also create video to teach email verification

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

    Hello can you help me out? when i try to login with a registered account it keeps saying "the email field is required" and "the password field is required"

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

      You have made mistakes with the code or in the database table column

  • @IAPT18
    @IAPT18 Рік тому +1

    My larvel installer 4.5 can we do auth there.any updradation required

    • @CodesEasy
      @CodesEasy  11 місяців тому

      4.5 is an old one. Update it to the latest version. And also use the latest Laravel version as well.

  • @saidigawa2881
    @saidigawa2881 Рік тому +3

    best

    • @CodesEasy
      @CodesEasy  Рік тому

      Happy that you find the video helpful

  • @KaguyaTv-hv3zn
    @KaguyaTv-hv3zn 11 днів тому +1

    did you use default database?

  • @AbdulAziz-us6pi
    @AbdulAziz-us6pi Рік тому +1

    @CodesEasy create a video on this topic using Laravel 10.

    • @CodesEasy
      @CodesEasy  Рік тому

      The video will be almost the same only. Go ahead and do this on Laravel 10 also.

    • @AbdulAziz-us6pi
      @AbdulAziz-us6pi Рік тому

      @@CodesEasy I tried but auth::attempt not working.

  • @seltin880
    @seltin880 Рік тому +1

    I have a small problem Method 'create' not found in \App\Models\User and i don't know what i should do

    • @CodesEasy
      @CodesEasy  Рік тому

      If it's error showing in PHPStorm or the ide just ignore it. It's because the ide can't recognise it properly.

  • @ariezjejaka
    @ariezjejaka Рік тому +1

    how to fix InvalidArgumentException
    PHP 8.1.4
    10.3.2
    View [folder.layout] not found.

    • @CodesEasy
      @CodesEasy  Рік тому

      You have not created the layout properly. Check that part in the video and check your code. You most problem have made mistake there.

    • @CodesEasy
      @CodesEasy  Рік тому

      Why is it folder.layout i think you just have to make it layout removing the folder

    • @ariezjejaka
      @ariezjejaka Рік тому

      Thank's

  • @prashanttamang2728
    @prashanttamang2728 Рік тому +1

    i followed the steps performed in your video but i am getting error "the get method is not supported for this route"

    • @CodesEasy
      @CodesEasy  Рік тому

      Check the route, check if you have added wrong type, get and post. Make sure it's correct

    • @prashanttamang2728
      @prashanttamang2728 Рік тому +1

      @@CodesEasy yeah i performed mistake on the login page while declaring route

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

    Bro i have the login and register code but not know that how to connect this code and that code

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

      Please answer me

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

      Humm, you have to learn the basics. You could join our online classes if you are interested.

  • @kuchbhi9408
    @kuchbhi9408 Рік тому +1

    Sir please help me to create a route only for registered users...
    No authorised user can access that route 😅😂
    I have been searching for that last 2 weeks on UA-cam

    • @CodesEasy
      @CodesEasy  Рік тому

      just add a middleware('auth')

  • @olivieris
    @olivieris Рік тому +1

    Thank you bro

  • @sitimunizaiyanah8741
    @sitimunizaiyanah8741 Рік тому +1

    sir, 56:57 here after registration page i cannot go to the login page. it appear Class "App\Http\Controllers\User" not found

    • @CodesEasy
      @CodesEasy  Рік тому

      You have made some mistake with the model area. Check if you are using the proper model. On the top you can see app\http\...\... In this area the user class should be a model not a controller.
      Watch the video once more if you don't get it.

    • @ctrlshifti5346
      @ctrlshifti5346 7 місяців тому

      @@CodesEasy plz elaborate this one, I am facing the similar issue even after doing everything according to the video.

  • @sagnikchatterjee8122
    @sagnikchatterjee8122 Рік тому +1

    Bro at 56:52 its giving me Bad Method Call Did you mean App\Http\Controllers\AuthManager::registration() ? Please help.

    • @CodesEasy
      @CodesEasy  Рік тому

      you have to import correct function from correct class, if you want you can also download the source code, or just watch the video once more everything is explained.
      registration() is a function in the controller AuthManager

  • @2JZ-it8ug
    @2JZ-it8ug 11 місяців тому +1

    Sir how about the Length of the password? for the security we need use strong password

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

      Ofcourse you can specify the length in the validation part

  • @DavidAshby1
    @DavidAshby1 7 днів тому +1

    With laravel 11+ you can use php inbuilt hash? $data['password'] = password_hash($request->password, PASSWORD_DEFAULT); for the registration

    • @CodesEasy
      @CodesEasy  4 дні тому

      If you want to you Laravel auth, use their own classes. Hash::make()

  • @ZA-wc9mb
    @ZA-wc9mb Місяць тому +1

    Why does it says Page Expired 419 on mine??

    • @CodesEasy
      @CodesEasy  29 днів тому

      Make sure you added csrf token option

    • @ZA-wc9mb
      @ZA-wc9mb 29 днів тому

      @@CodesEasy I did both csrf tokens on registration & login, probably from the routing or controller,model or migration table..

    • @abdulwaheedchaudhary-3675
      @abdulwaheedchaudhary-3675 13 днів тому

      Csrf missing

  • @kirankumar.c4440
    @kirankumar.c4440 Рік тому +1

    57:10 here I have got perfectly after this ie the registration part is not going to login part where did I got wrong

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Check the if condition check if registration is successful or not. You can also check out the source code in the description

    • @kirankumar.c4440
      @kirankumar.c4440 Рік тому

      @@CodesEasy thanks I rectified the mistake now another mistake has arisen ie BadMethodCallExpection it is pointing the $request->validate in the registration post and it is saying that validateRequiredmail does not exist

  • @فيصلالراوي-ع1ج
    @فيصلالراوي-ع1ج Рік тому +1

    Hello please i have a problem can you help me?

  • @izclffrd
    @izclffrd Місяць тому +1

    Route [login.post] not defined. 😐

    • @CodesEasy
      @CodesEasy  Місяць тому

      check your web.php file, watch the video its shown in the video in detail

    • @shohelrajsujon8358
      @shohelrajsujon8358 18 днів тому

      use Inverted comma

  • @laoudmohamed418
    @laoudmohamed418 Рік тому +1

    when i press login i stay in the same page

    • @CodesEasy
      @CodesEasy  Рік тому

      That means login is not successful. Check the response try printing it and check

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

    login will not redirect to home page

  • @yourjoy8589
    @yourjoy8589 Рік тому +1

    What to do after this?

    • @CodesEasy
      @CodesEasy  Рік тому

      You can continue building the app. This is login and registration

  • @NolanJohnCabulera
    @NolanJohnCabulera Рік тому +1

    why is it needed some mongodb stuff in my ide?

    • @CodesEasy
      @CodesEasy  Рік тому

      No, in this video mysql is been used

    • @NolanJohnCabulera
      @NolanJohnCabulera Рік тому

      @@CodesEasy still have an error with the $user=User::create($data) and the registrations is always failed. The model also generated public static stuff, did i forget anything before doing the project?

  • @PutraDamarwulan
    @PutraDamarwulan Рік тому +1

    100k banggg bwt depoooo

  • @glitch_forge
    @glitch_forge Рік тому +1

    if you acess / without loggin in it will not redirect you to /login page

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Yes it will. Add the route inside a middleware auth

    • @glitch_forge
      @glitch_forge Рік тому

      yes sir already did it@@CodesEasy

  • @IAPT18
    @IAPT18 Рік тому +1

    Auth is not working

    • @CodesEasy
      @CodesEasy  Рік тому

      Check for errors. Watch the video carefully

  • @2684dennis
    @2684dennis 3 місяці тому +1

    thanks for the vid, this is working, now i aded a usertype to my table and i updated the login function to this:
    public function login()
    {
    if (Auth::check()) {
    $user = Auth::user();
    $userType = $user->usertype;
    if ($userType === 'admin') {
    $redirectPath = route('admin');
    } else {
    $redirectPath = route('user');
    }
    return redirect($redirectPath);
    } else {
    return view('components.forms.loginForm'); // Weergave inlogformulier
    }
    }
    but if i login with a admin usertype i stil get redirected to the normal homepage, any idea what is wrong, is the code wrong, did i forget anything? thanks

  • @dannyantoine8472
    @dannyantoine8472 Рік тому +4

    How to add my own css and not bootstrap

    • @CodesEasy
      @CodesEasy  Рік тому

      Dont add Bootstrap. Instead add yours CSS in a file and place that css in public folder. The user link tag to add that to the page

    • @dannyantoine8472
      @dannyantoine8472 Рік тому +1

      @@CodesEasy I see a css folder in the resources folder. But nothing in the public folder. Should I just put it in the public folder?

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Just create a folder or file according to your wish in side the public folder

  • @PutraDamarwulan
    @PutraDamarwulan Рік тому +1

    coba ganti pola bang

  • @SachinCse-w3w
    @SachinCse-w3w Рік тому +2

    leee tamma kannada valaga madrleee

    • @CodesEasy
      @CodesEasy  Рік тому

      We could only understand kannada in a limited amount:)

  • @mdmarajulislam1
    @mdmarajulislam1 5 місяців тому

    Brother,I have just started and having issues in web.php.It shows require __DIR__.'/auth.php'; so what to do?

  • @mdmarajulislam1
    @mdmarajulislam1 5 місяців тому

    bro i am facing problem in require DIR /auth.php

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

  • @maximumguard
    @maximumguard Рік тому +1

    In 24:00 when i run the site and inserting inputs in registration form after submitting it shows me 419 page expired but i have @csrf in both registration and login file too! @CodesEasy

    • @CodesEasy
      @CodesEasy  Рік тому +1

      Try refreshing the page properly and check. Make sure you are having an input field in the name _token, use view source option to check after loading the page

  • @shiroxcoke713
    @shiroxcoke713 Рік тому +1

    Hi, I am trying to do custom login with using password only to login by refering to your video, however I having issue at the $credentials and (Auth:attempt($credentials)) part while others able to run. I assume the database somehow unable to check my password or maybe others issue which I don't really know. So, may I ask do u had any idea what causing this? I am sorry about this 🥲

    • @CodesEasy
      @CodesEasy  Рік тому

      Explain the issue so we could help

    • @shiroxcoke713
      @shiroxcoke713 Рік тому

      The issue is when I try to login, the system keep sending me error message eventhough I used the correct password. I also tried multiple times and it keep sending me error anyways

    • @haiqalazry4129
      @haiqalazry4129 Рік тому

      @@shiroxcoke713 same issue

    • @AbdulAziz-us6pi
      @AbdulAziz-us6pi Рік тому

      same problem here .have you got any solution?

  • @keerthisharrma1128
    @keerthisharrma1128 Рік тому +1

    INFO Preparing database.
    Creating migration table ....................................................................................................... 38ms DONE
    INFO Running migrations.
    2014_10_12_000000_create_users_table ........................................................................................... 57ms DONE
    2014_10_12_100000_create_password_reset_tokens_table ........................................................................... 40ms DONE
    2019_08_19_000000_create_failed_jobs_table ..................................................................................... 51ms DONE
    2019_12_14_000001_create_personal_access_tokens_table .......................................................................... 41ms DONE
    PS C:\xampp\htdocs\login-page> php artisan migrate
    i have a greate a table in my terminal but in phpmyadmin doesn't pop out anything about the database which has create before

    • @CodesEasy
      @CodesEasy  Рік тому

      Check if you are using any other MySQL setup. Check your MySQL details in .env file

    • @CodesEasy
      @CodesEasy  Рік тому

      First create a database in phpmyadmin, then run the command