Laravel 8 custom authentication | part one

Поделиться
HTML-код
  • Опубликовано: 31 окт 2020
  • #Irebe Library.
    In this video we'll see how to create custom authentication system in laravel 8. for this part we'll see registration.
    - You can watch this video: • Laravel 8 custom authe...
    Where you will see how to protect profile page by applying middleware on profile route. you will see also the process of using query builder which will give the same results to the model way.
  • ХоббиХобби

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

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

    Good Content.

  • @Loljdk
    @Loljdk 3 года назад +2

    Best video so far

  • @DotaTurbo69
    @DotaTurbo69 3 года назад +1

    thank you so much for this video

  • @kaanaytac9604
    @kaanaytac9604 3 года назад +1

    Thank you so much for this video.perfect work

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

    So Good video. Very Easy To Understand than others

  • @MarceloSilva-xz4tx
    @MarceloSilva-xz4tx 3 года назад

    Great video. Thank you so much!

  • @david0705
    @david0705 3 года назад +1

    Thanks, works like a charm.

  • @dayumnson9769
    @dayumnson9769 3 года назад +2

    great video, keep it up :) More laravel content!
    Min 23:30 - please don't show specific message when email is not found or found. Will give bruteforcers an edge. Simply tell email or password wrong

  • @yonatanmamani-coaquira748
    @yonatanmamani-coaquira748 3 года назад

    Thanks bro, excelent video

  • @user-ny5eo3so3q
    @user-ny5eo3so3q 3 года назад +1

    감사합니다.

  • @sachinkolhe1572
    @sachinkolhe1572 3 года назад +1

    thanku sir this video helps me in my project

  • @mohammadrobiulhossain5347
    @mohammadrobiulhossain5347 3 года назад +1

    thank you so much

  • @jeromeb1201
    @jeromeb1201 3 года назад +1

    you're a master

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

    Thank you. What if I need to remain logged in for a longer time (weeks/months). Can you advise about cookie auth?

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

    Nice video thank you

  • @RiyaHusnaOfficial
    @RiyaHusnaOfficial 3 года назад +1

    It works.. thanks somuch

  • @jdd4622
    @jdd4622 3 года назад +1

    I'll be waiting for the multiple authentication for this

  • @johnycardozo7538
    @johnycardozo7538 3 года назад +1

    Congratz bro, great video!

  • @lovestories701
    @lovestories701 3 года назад +1

    thanks sir

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

    Hello, this's a very useful video thanks a lot.
    I tried to do the same, and most of it worked successfully except one thing;
    In time 28:06 appear $data added to return view('admin.profile');
    That you have never added it in the whole video, and it hit an exception with it in my work!

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

      Hi, did u find the solution I'm facing the same issue but unable to solve it.

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

    Hey Irebe,
    Thank you for such a useful session on custom auth. I've a question that what does this line of code does."
    *_$user = User::where('email','=', $request->email) -> first();_* ".
    the Laracvel 8 doc says "first method with no arguments is used to get the first element in the collection".
    Please elaborate me. Thank you.

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

    please make a video on multi auth using laravel breeze

  • @ignatiuskhan9328
    @ignatiuskhan9328 3 года назад +1

    great video, but please remove the background music from videos.

    • @irebelibrary
      @irebelibrary  3 года назад +1

      Next videos will never have background music. thanks bro.

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

    Trying to get property 'name' of non-object

  • @yuhnder
    @yuhnder 3 года назад +1

    $user = User::where('email','=', $request->email)->first;
    having exception error here -> Property [first] does not exist on the Eloquent builder instance.
    help.
    22:40

    • @irebelibrary
      @irebelibrary  3 года назад +1

      Hello April,
      You forgot brackets after first.
      $user = User::where('email','=', $request->email)->first();

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

    Why can't the user's full name appear after logging in. {{Auth :: user () -> name}}. in blade. Check login and no login status is not working on the blade

    • @vinish771
      @vinish771 3 года назад +1

      you are not using Auth

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

    I have problems with the logout , I did not rediction to login

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

    my problem is that it marks me Method Illuminate\Validation\Validator::validateUsuario does not exist.

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

    How was installed bootstrap?

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

      I downloaded bootstrap and use compiled files in laravel public folder

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

    where's the $query coming from??

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

    Bad Method Call
    Did you mean App\Http\Controllers\UserAuthController::register() ?
    getting the above error after trying to log into profile

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

      hello ajith1786. in this tutorial we used App\Http\Controllers\UserAuth::create() instead of register()

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

      I just had the same problem but I found the solution. Check your function profile, I had misplaced mine. You must have two closing brackets before it and two after it.

  • @margretmm2428
    @margretmm2428 3 года назад +2

    How to track the browser closing time of user

    • @irebelibrary
      @irebelibrary  3 года назад +2

      You can use this javascript trick:
      $(window).on('beforeunload', function() {
      $.ajax({
      url: /controller/action/clear
      });
      });
      or you can user the following way:
      laracasts.com/discuss/channels/laravel/hot-to-forget-user-session-when-browser-is-closed-laravel-56

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

      @@irebelibrary how can we store that time in our db

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

    thank for your video ccan you give me srouce code please

  • @dolls.ahya3
    @dolls.ahya3 3 года назад

    sir no need to background music in learning vedio

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

    my problem is undefined variable: data. i don't know why and maybe the session()->put('LoggedUser, $user->id isn't working. help
    edit: I solved my problem! Thank you.

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

    $req->session()->put('LoggedUser', $user->id);
    return redirect('profile');
    code in the above is not working for me

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

      its staying in log in

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

      Hi SHP tanjiro,
      Try to clear browser caches and try again.

    • @shptanjiro8147
      @shptanjiro8147 3 года назад +1

      i found my solution... my live server extension is preventing me to redirect..

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

    Great Tuto. Small code optimization idea for the profile() method:
    public function profile()
    {
    $user = null; // Object $user initialized to null
    if(session()->has('LoggedUser')){
    $user = User::where('id','=',session('LoggedUser'))->first(); // Affectation of $user Object
    }
    return view('admin.profile',compact('user')); // transmission to the view 'admin.profile' via compact() method.
    }
    Using $user Object in 'admin.profile' view:
    {{ $user->name }}
    {{ $user->email }}
    Logout

  • @ahmadyousef600
    @ahmadyousef600 3 года назад +1

    Hello, this's a very useful video thanks a lot.
    I tried to do the same, and most of it worked successfully except one thing;
    In time 28:06 appear $data added to return view('admin.profile');
    That you have never added it in the whole video, and it hit an exception with it in my work!

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

      did you found out any solution on that?

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

      its next on the video the array

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

      @@anm1189 still not working for me
      edit: I already solved my problem

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

      Hi, did u find the solution I'm facing the same issue but unable to solve it.