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. Хобби
Good Content.
Thank you
Best video so far
thank you so much for this video
Thank you so much for this video.perfect work
Glad it was helpful!
So Good video. Very Easy To Understand than others
Thank you
Great video. Thank you so much!
Glad you enjoyed it!
Thanks, works like a charm.
thank you
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
good idea. thank you
Thanks bro, excelent video
Glad it helped
감사합니다.
천만에요
thanku sir this video helps me in my project
Thank you
thank you so much
you're a master
Thank you
Thank you. What if I need to remain logged in for a longer time (weeks/months). Can you advise about cookie auth?
Nice video thank you
thank you.
It works.. thanks somuch
Thanks
I'll be waiting for the multiple authentication for this
Congratz bro, great video!
Thank you Johny Cardozo
thanks sir
All the best
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!
Hi, did u find the solution I'm facing the same issue but unable to solve it.
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.
please make a video on multi auth using laravel breeze
great video, but please remove the background music from videos.
Next videos will never have background music. thanks bro.
Trying to get property 'name' of non-object
$user = User::where('email','=', $request->email)->first;
having exception error here -> Property [first] does not exist on the Eloquent builder instance.
help.
22:40
Hello April,
You forgot brackets after first.
$user = User::where('email','=', $request->email)->first();
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
you are not using Auth
I have problems with the logout , I did not rediction to login
my problem is that it marks me Method Illuminate\Validation\Validator::validateUsuario does not exist.
How was installed bootstrap?
I downloaded bootstrap and use compiled files in laravel public folder
where's the $query coming from??
Bad Method Call
Did you mean App\Http\Controllers\UserAuthController::register() ?
getting the above error after trying to log into profile
hello ajith1786. in this tutorial we used App\Http\Controllers\UserAuth::create() instead of register()
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.
How to track the browser closing time of user
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
@@irebelibrary how can we store that time in our db
thank for your video ccan you give me srouce code please
sir no need to background music in learning vedio
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.
nvm i already solved my prob
try to clean browser cache and try again
$req->session()->put('LoggedUser', $user->id);
return redirect('profile');
code in the above is not working for me
its staying in log in
Hi SHP tanjiro,
Try to clear browser caches and try again.
i found my solution... my live server extension is preventing me to redirect..
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
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!
did you found out any solution on that?
its next on the video the array
@@anm1189 still not working for me
edit: I already solved my problem
Hi, did u find the solution I'm facing the same issue but unable to solve it.