How to create Custom Login Registration in Laravel

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 143

  • @skc-j
    @skc-j 9 месяцев назад +7

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

    • @CodesEasy
      @CodesEasy  9 месяцев назад

      Happy that the video helped you

  • @kovzor128
    @kovzor128 Месяц назад +1

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

  • @intro_carlequin9913
    @intro_carlequin9913 3 месяца назад +1

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

  • @ahmadakorede3842
    @ahmadakorede3842 9 месяцев назад +2

    Great Tutorial. I love the gentle pace and clear explanation

    • @CodesEasy
      @CodesEasy  9 месяцев назад

      Glad it was helpful!

  • @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!

  • @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

  • @christianmansoor3015
    @christianmansoor3015 7 месяцев назад

    Man you are the best teacher

  • @blakspot2721
    @blakspot2721 Год назад +2

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

  • @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

  • @mehnazaysha1595
    @mehnazaysha1595 11 месяцев назад +1

    Amazing tutorial! Thank you so much

    • @CodesEasy
      @CodesEasy  11 месяцев назад

      Glad it was helpful!

  • @awery120
    @awery120 7 месяцев назад

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

  • @ns8928
    @ns8928 9 месяцев назад +1

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

  • @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

  • @briantebeck2861
    @briantebeck2861 8 месяцев назад +1

    Awesome 🎉

  • @felixamenya4554
    @felixamenya4554 Год назад +1

    awesome stuff

    • @CodesEasy
      @CodesEasy  Год назад

      Happy that the video helped you

  • @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

    • @CodesEasy
      @CodesEasy  10 месяцев назад

      You're welcome

  • @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

  • @shahzadsaeed-l6d
    @shahzadsaeed-l6d 8 месяцев назад +1

    Thanks

  • @JunzFundador
    @JunzFundador 4 месяца назад +1

    what's your IDE ? looks so nice

  • @PutraDamarwulan
    @PutraDamarwulan Год назад +1

    gue dukung terus bang

  • @saidigawa2881
    @saidigawa2881 Год назад +3

    best

    • @CodesEasy
      @CodesEasy  Год назад

      Happy that you find the video helpful

  • @mosesdwana9555
    @mosesdwana9555 День назад +1

    What version of laravel are you using sir?

    • @CodesEasy
      @CodesEasy  День назад

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

  • @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 8 месяцев назад +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  8 месяцев назад

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

  • @sharonlawai9422
    @sharonlawai9422 Год назад +1

    Are you using the android studio software?

  • @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.

  • @olivieris
    @olivieris Год назад +1

    Thank you bro

  • @IAPT18
    @IAPT18 11 месяцев назад +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.

  • @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

  • @izclffrd
    @izclffrd 20 дней назад +1

    Route [login.post] not defined. 😐

    • @CodesEasy
      @CodesEasy  17 дней назад

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

    • @shohelrajsujon8358
      @shohelrajsujon8358 3 дня назад

      use Inverted comma

  • @ZA-wc9mb
    @ZA-wc9mb 15 дней назад +1

    Why does it says Page Expired 419 on mine??

    • @CodesEasy
      @CodesEasy  14 дней назад

      Make sure you added csrf token option

    • @ZA-wc9mb
      @ZA-wc9mb 14 дней назад

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

  • @2JZ-it8ug
    @2JZ-it8ug 10 месяцев назад +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

  • @jeetyashshah8524
    @jeetyashshah8524 8 месяцев назад +1

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

    • @jeetyashshah8524
      @jeetyashshah8524 8 месяцев назад

      Please answer me

    • @CodesEasy
      @CodesEasy  8 месяцев назад

      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 RUclips

    • @CodesEasy
      @CodesEasy  Год назад

      just add a middleware('auth')

  • @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

  • @connormclaughlin01
    @connormclaughlin01 7 месяцев назад

    login will not redirect to home page

  • @2684dennis
    @2684dennis 2 месяца назад +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

    • @CodesEasy
      @CodesEasy  2 месяца назад

      Check your routes

  • @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

  • @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

  • @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 6 месяцев назад

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

  • @mdmarajulislam1
    @mdmarajulislam1 4 месяца назад

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

  • @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.

  • @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

  • @فيصلالراوي-ع1ج
    @فيصلالراوي-ع1ج Год назад +1

    Hello please i have a problem can you help me?

  • @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?

  • @yourjoy8589
    @yourjoy8589 Год назад +1

    What to do after this?

    • @CodesEasy
      @CodesEasy  Год назад

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

  • @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

  • @IAPT18
    @IAPT18 11 месяцев назад +1

    Auth is not working

    • @CodesEasy
      @CodesEasy  11 месяцев назад

      Check for errors. Watch the video carefully

  • @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

  • @PutraDamarwulan
    @PutraDamarwulan Год назад +1

    100k banggg bwt depoooo

  • @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 4 месяца назад

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

  • @techlead6083
    @techlead6083 8 месяцев назад +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

  • @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

  • @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?