How to make Login System in Laravel

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Learn How to Create a Login System in Laravel. How to make Simple and Easy Laravel Login authentication. How to set up Laravel login Authentication.
    Check our new PHP Project with Complete Source Code
    PHP Mysql Chat Application with WebSocket - • Chat Application in PH...
    PHP Project on Student Result Management System - • Video
    Restaurant Management System Created using PHP - • Video
    Visitor Management System in PHP Mysql using Ajax jQuery - • Video
    For Source Code - www.webslesson....

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

  • @josemiguelanover986
    @josemiguelanover986 6 лет назад +214

    I love how Stephen Hawking's teaching me web development.

  • @iamthejustin7420
    @iamthejustin7420 4 года назад +1

    Thanks for the video, this video made me get my bachelor's degree. For future Western Sydney PX students, this login system is very good.

  • @elibiz9511
    @elibiz9511 6 лет назад +3

    Hey..there is a problem at 3:00, should have written UsersTableSeeder in the command line other than UsersTablesSeeder...Otherwise, nice job

  • @stephaniequijano5579
    @stephaniequijano5579 4 года назад +1

    please someone help me with this
    I'm trying a basic php artisan db:seed after migrating my database but it keeps returning the title error in cmd -[ReflectionException] Class 'UserTableSeeder' does not exist

  • @paulomiguelsampang7263
    @paulomiguelsampang7263 4 года назад +1

    Hello it says Class 'Database\Seeders\Eloquent' not found

  • @TechnoTrace
    @TechnoTrace 6 лет назад +1

    Please could you make a thorough video on setting remember token in custom login system and custom verification of user using user id or username and password along with the email provided via a custom login form.
    I really liked this video as it is one of the videos that provides actual custom login. Thanks !!

  • @christianalbarbin652
    @christianalbarbin652 4 года назад +2

    Hi for those encountering the "Call to undefined function str_random()" error. The version 6 above does not support this method anymore, but Alternatively you can download it by entering the "composer require laravel/helpers" command in your project directory. You need an internet connection to download na packages.
    This should solve the problem.

  • @devtiagofranca
    @devtiagofranca 2 года назад +1

    Laravel Blade Components: ruclips.net/video/5rJo5pdqa2Q/видео.html

  • @kamalgyanchandani4143
    @kamalgyanchandani4143 3 года назад

    Should we use Laravel Breze or write own Login code for clients application.

  • @junminglook
    @junminglook 5 лет назад +4

    @if(isset(Auth::user()->email))
    window.location="/main/successlogin";
    @endif
    Once i add this line of script code and login the page the successlogin page keep looping

    • @ZaidAhmad
      @ZaidAhmad 4 года назад

      in successlogin , specify different location path where you want the page to go after login..
      such as
      else
      window.location=*"/blog/public/"*
      @endif

  • @sunnysun3605
    @sunnysun3605 3 года назад

    hy so can you please help me i have created login page but rathen then going to targeted page it is redirectng me to auth page

  • @komalshukla8437
    @komalshukla8437 5 лет назад

    Thank you... so so so much..You help me the most in my IT courier.Keep it up.

    • @on1033
      @on1033 4 года назад

      Career* :)

  • @lastninja2022
    @lastninja2022 3 года назад

    thanks sir may god bless you ..do you have login both admin and user with roles?

  • @rupalidoke8302
    @rupalidoke8302 5 лет назад

    why am I getting this error when tried to run login.blade.php? 'Cannot GET /main/successlogin'

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Your tutorial is too good

  • @abyramy
    @abyramy 3 года назад

    can u tell what is the proper password you key in ? Cause all working except...when I entered the right data

  • @Questionmark47789
    @Questionmark47789 3 года назад

    Webslesson my best tutor thanks

  • @fathanfadillah7601
    @fathanfadillah7601 4 года назад

    thanks bro, it helps me for authentication

  • @deylad6014
    @deylad6014 4 года назад

    where did you put your action?
    Sir in form submit

  • @santhoshkumar-sf4bc
    @santhoshkumar-sf4bc 4 года назад

    Sir. make videos on Laravel-7. how to make LOGIN with REGISTRATION using Sessions. and CRUD and FILEUPLOAD and Joins

  • @gigajoules6636
    @gigajoules6636 4 года назад

    What laravel version is this for~?

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

    this video was perfect

  • @anandgupta4660
    @anandgupta4660 5 лет назад

    sir kasie hum laravel ka defulat login and register ajax ke sath use kr sakte hai

  • @danialdilljr.2077
    @danialdilljr.2077 4 года назад

    hi I got this error how to fix this one?
    Error
    Call to undefined function str_random()

    • @marcoantonioaraujopereira4169
      @marcoantonioaraujopereira4169 4 года назад

      Try
      use Illuminate\Support\Str;
      'remeber_token' => Str::random(10)

    • @danialdilljr.2077
      @danialdilljr.2077 4 года назад

      @@marcoantonioaraujopereira4169 now it produce a new error in the cmd :
      SQLSTATE[HY000]: General error: 1364 Field 'id_profile' doesn't have a default value

  • @pakornh2036
    @pakornh2036 5 лет назад

    Thank you for tutorial.

  • @dhafinkamil6376
    @dhafinkamil6376 3 года назад

    hey Why DOnt Show US Make The
    Model

  • @santiagocadenas2417
    @santiagocadenas2417 6 лет назад

    Hello! This is a very nice video and very clear but I have a problem... I can login correctly but if I insert a new user in phpMyadmin or in the database manually... I can´t login because it says "Wrong Login Details" Help please!

    • @ivarledgis2975
      @ivarledgis2975 6 лет назад

      maybe its beacuse of Password ... try to insert password in MD5 then check again

  • @MilanGandhi
    @MilanGandhi 5 лет назад

    Very good article

  • @muhammadmuzammil9669
    @muhammadmuzammil9669 5 лет назад

    Thanks. Helpful

  • @ramanuj912
    @ramanuj912 5 лет назад

    sir make it with bootstrap model and rgisteration page also

  • @widherayozamahanaputra3593
    @widherayozamahanaputra3593 6 лет назад

    i luv ur tutorial

  • @thandarwin056
    @thandarwin056 5 лет назад

    Thank u so much bro...

  • @amjadjavid5055
    @amjadjavid5055 4 года назад

    Hi, Sir how to disable navbar from login/Registration page in laravel 6

    • @majormfr8646
      @majormfr8646 4 года назад

      public folder in your project has all style related code

  • @ishratbano6032
    @ishratbano6032 2 года назад

    Thanks sir

  • @jamalkhemmar
    @jamalkhemmar 6 лет назад

    Thank you ;)

  • @hangtranthi9817
    @hangtranthi9817 5 лет назад

    Nice voice!!!

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Check box laravel and Ajax search

  • @abdullahmasood3673
    @abdullahmasood3673 6 лет назад

    Everything is working good but can uh tell me what will be the password for my login because its in hash and i dont what is the password of mine... Help me ??

  • @ahmedhamza9277
    @ahmedhamza9277 3 года назад

    awesome :)

  • @surajprasadbhatta8458
    @surajprasadbhatta8458 4 года назад

    wrong detail message saw everytime

  • @parykhanyousif2845
    @parykhanyousif2845 3 года назад

    Illuminate\Contracts\Container\BindingReso
    Target class [UsersTablesSeeder] does not e

    • @rakeshnaidu5343
      @rakeshnaidu5343 3 года назад

      Did you Resolve this Error?,I'm also getting the same error.

  • @NarendraSharmaIN
    @NarendraSharmaIN 6 лет назад +4

    very nice laravel tutorial without any extra things..
    nice use of Auth classes..
    Keep it up :)

  • @Npwyzpwz
    @Npwyzpwz 4 года назад +1

    This tutorial nowadays is not valid anymore.

  • @rajeshchauhan657
    @rajeshchauhan657 5 лет назад +2

    The way of teaching and the method you use is awesome, sir
    please make video on session (add to cart )
    Thank you

  • @hinaasif8488
    @hinaasif8488 4 года назад +1

    In the end you enter email same as in. evn file but what is password you put

  • @zeraoraofficial
    @zeraoraofficial 2 года назад

    I have a problem when I already login then it loops to main then succeslogin page please help.

  • @lifeinloop
    @lifeinloop 5 лет назад +2

    Nice tutorial! Thank you very much!!

  • @ahamednishadh4136
    @ahamednishadh4136 5 лет назад +2

    Sir I need Remember Me function in login screen in laravel 5.4. Can you please help me

    • @princesooraj1526
      @princesooraj1526 4 года назад

      ruclips.net/video/eP9N68kxnSs/видео.html

  • @marinarioagalliu9517
    @marinarioagalliu9517 5 лет назад +4

    03:42 you should write 'username' instead of 'name' -> otherwise generates error
    04:41 you should write 'UsersTablesSeeder' instead of'UsersTableSeeder' -> otherwise generates error

    • @majormfr8646
      @majormfr8646 4 года назад

      why brother?
      name is column field in database too

    • @Moonboy-wt5ns
      @Moonboy-wt5ns 3 года назад

      @@majormfr8646 it isnt?

  • @waynefaustorilla
    @waynefaustorilla 5 лет назад +1

    I know Pink Sheep could craft but I never knew he could code. 😂

  • @sharminrima8033
    @sharminrima8033 5 лет назад

    Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations)
    at G:\sdLaravel\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
    660| // If an exception occurs when attempting to run a query, we'll format the error
    661| // message to include the bindings with SQL, which will make this exception a
    662| // lot more helpful to the developer instead of just the database's errors.
    663| catch (Exception $e) {
    > 664| throw new QueryException(
    665| $query, $this->prepareBindings($bindings), $e
    666| );
    667| }
    668|
    Exception trace:
    1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)")
    G:\sdLaravel\project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
    2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=homestead", "homestead", "secret", [])
    G:\sdLaravel\project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
    Please use the argument -v to see more details.
    [Finished in 0.6s]
    help pls

  • @HadiVlogsOfficial7
    @HadiVlogsOfficial7 4 года назад

    Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, called in C:\xampp\htdocs\laravel\New\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 377

  • @sreymomkhen3787
    @sreymomkhen3787 3 года назад

    Hi guy,
    I'm following your video but facing this kind of error:
    Method Illuminate\Auth\SessionGuard::attemp does not exist.
    Any solution???
    Thanks

  • @m_ahmad02
    @m_ahmad02 6 лет назад +1

    Class UsersTableSeeder does not exist
    $error please help

    • @osvaldoalvarado9250
      @osvaldoalvarado9250 6 лет назад +1

      Try Calling "UserTablesSeeder" ... in your code not have last S in "tableS" sentence

  • @rdsu947
    @rdsu947 3 года назад

    can anyone check my code on anydesk?? I have follow the this video procedure but i can't login. and i have try many times but always gives same result. it always gives in else part.

  • @wahyugoenawan3878
    @wahyugoenawan3878 4 года назад

    I don't know why but this completely doesn't work for me. It always shows error email and password required even though I already tried with wrong email and password and correct email and password. It still only showed email and password required error.

  • @aqilsyahmi462
    @aqilsyahmi462 3 года назад

    it seems like i`ve encountered many issues, i think this video does not valid anymore with current version of laravel

  • @ahmedhamza9277
    @ahmedhamza9277 3 года назад

    greate

  • @M4sterPlayer77
    @M4sterPlayer77 6 лет назад +2

    Thanks , the best channel for learning keep going

    • @princesooraj1526
      @princesooraj1526 4 года назад

      ruclips.net/video/eP9N68kxnSs/видео.html

  • @salonabajracharya201
    @salonabajracharya201 5 лет назад +1

    I followed each and every steps from this tutorial but im getting error "TokenMismatchException" when i enter the login.

    • @chamba149
      @chamba149 4 года назад +1

      im a little late but you can use

    • @evansetyaadhinata7990
      @evansetyaadhinata7990 3 года назад

      You can just simply add @csrf inside your form for mandatory security

  • @vivekkumar-zl4pe
    @vivekkumar-zl4pe 2 года назад

    Please make also reset and forgot password simple method

  • @bustergaa
    @bustergaa 4 года назад

    Not sure why i find this meme of a voice so much better to listen to, probably the best tutorial on this i seen lol

  • @majormfr8646
    @majormfr8646 4 года назад

    where is registeration form and how can we use the same users table for registering new users?

  • @ahsankalim8594
    @ahsankalim8594 6 лет назад

    Sir can you discuss about chart in laravel? If you don't have a time to make a video about chart.. So plzz send me any resources about to chart! I shall be very thankful to you

  • @mdtofiqb
    @mdtofiqb 3 года назад

    Eloquent::unguard(); from Eloquent your importing I m getting error as Undefined type 'Database\Seeders\Eloquent'

  • @bank1889
    @bank1889 4 года назад

    why i can't login? i think email and password is right.

  • @johnkennethadolfo5295
    @johnkennethadolfo5295 5 лет назад

    i figured that this channel wont reply if asked.

  • @zukhruflatif35
    @zukhruflatif35 6 лет назад

    terima kasih. tutorial yang sangat bermanfaat.

  • @kodishim
    @kodishim 4 года назад

    Why do I have no UserTablesSeeder

  • @justinlemuel12
    @justinlemuel12 4 года назад

    Do you have a tutorial using middleware?

  • @xog4041
    @xog4041 6 лет назад +1

    love from my friends we all connect with this channel thank you

    • @princesooraj1526
      @princesooraj1526 4 года назад

      ruclips.net/video/eP9N68kxnSs/видео.html

  • @mousamkhadka9923
    @mousamkhadka9923 5 лет назад

    I have a problem in window.location

  • @reshmarajan7908
    @reshmarajan7908 3 года назад

    Thank you nice tutorial

  • @Questionmark47789
    @Questionmark47789 4 года назад

    We lesson good teacher

  • @sopathidayat7819
    @sopathidayat7819 4 года назад

    I love this channel

  • @asishb
    @asishb 4 года назад

    What is the use of seeder?

  • @vino7tech
    @vino7tech 5 лет назад

    Nice explanation sir

  • @mariaanastasya2619
    @mariaanastasya2619 4 года назад

    Thank youu sir

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Please make tutorial laravel and Ajax

  • @EldinDimadon
    @EldinDimadon 3 года назад

    Nice!!

  • @nabeeltahir6013
    @nabeeltahir6013 6 лет назад

    Laravel and Ajax dynamic page load

  • @prashantmishra7314
    @prashantmishra7314 5 лет назад

    I got the error in cmd while seed "There are no commands define in "db" namespace"

  • @lrnlws
    @lrnlws 5 лет назад

    throwing up the 'Wrong login details' error when I'm trying to log in, even though the details are correct. anyone found a solution to this?

  • @alluredev6590
    @alluredev6590 6 лет назад +1

    I am having error" wrong login detail"

    • @852higor
      @852higor 6 лет назад +1

      I'm having the same problem. Do you find the error?

    • @TheAzazel201
      @TheAzazel201 5 лет назад +3

      @@852higor which password are you using?? if you follow the tutorial... the password is 'password' (without the quotes)

    • @852higor
      @852higor 5 лет назад

      @@TheAzazel201 the tutorial is correct, the error happened because I translated password to portuguese so it can be the same way the documentation is.

    • @lifeinloop
      @lifeinloop 5 лет назад

      @@852higor Eu estava a alterar a password na base de dados para 123 porque aquilo estava uma salgalhada mas era a encriptação que a tinha armazenado assim na base de dados.

    • @lifeinloop
      @lifeinloop 5 лет назад

      @@TheAzazel201 Thank you Azazel. I was also missing that out. Another portuguese here lol. My distraction, i did not have seen that the password was being encripted in the database when created with the UsersTableSeeder. At least i check that one cannot change the password in the database because it wont work. It can only be stored via the laravel framework(or maybe encrypting it the same way as it does).

  • @VishalPatel-uz6gc
    @VishalPatel-uz6gc 6 лет назад

    master blaster in laravel

  • @ivarledgis2975
    @ivarledgis2975 6 лет назад +1

    I can´t login because it says "Wrong Login Details" .. i am sure i am providing the correct details but its not working !

    • @TechGoodies637
      @TechGoodies637 5 лет назад

      Go get a shower

    • @ruskhanh5333
      @ruskhanh5333 5 лет назад

      You need enter password is "password" if you follow tutorial

  • @aminemejri160
    @aminemejri160 5 лет назад

    I have this error
    BadMethodCallException
    Method App\Http\Controllers\loginController::validate does not exist.
    can any one help me

    • @MelkMetWater
      @MelkMetWater 3 года назад

      so do i.. where you able to find a fix?