The best video for passport authentication, taught in the best manner! Thanks alot
@OnlineWebTutor10 ай бұрын
Thank you friend for your valuable comment 😌
@sajidahamed586710 ай бұрын
Good explanation, Thank you🤩🤩
@OnlineWebTutor10 ай бұрын
Most welcome friend ☺️
@nicolas_vl28 күн бұрын
Here the Passport is used like Sanctum. The oauth/token endpoint should be responsible for returning the token. Passport is for OAuth 2.0, not just for issuing tokens directly.
@jq_dev9 ай бұрын
THE BEST!
@OnlineWebTutor9 ай бұрын
Thank you ☺️
@S-149-v8n8 ай бұрын
thank you very much sir, this tutor is verry good 🤩🤩🤩🤩🤩
@mgaqusai2526 Жыл бұрын
i have a problem with Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined. in file C:\Users\qusai\OneDrive\Desktop\laravel-test\test9\vendor\laravel\framework\src\Illuminate\Routing\UrlGenerator.php on line 479, how can I fix, when I tried to visit profile
@OnlineWebTutor Жыл бұрын
Where you are getting this error?
@ameetshrestha642410 ай бұрын
Hey, I faced the similar issue. We have to include "Accept"=>"application/json" in postman Headers to fix this issue.
@dgloria Жыл бұрын
Hi, this looks very good and useful. I've got all this working but I couldn't make my MustVerifyEmail work. Are you able to setup the verify email and the password reset functions on this app? Thank you.
@mclotos Жыл бұрын
so what about refresh token?
@desmondawere34097 ай бұрын
Thank you for this video, everything is working but when I don't provide a token to fetch user profile, I don't get Unauthenticated message, instead I get missing login route. Any idea how to fix this? Note: I am using laravel 11
@OnlineWebTutor7 ай бұрын
Please add a header with request - Accept: application/json
@johanortega80418 ай бұрын
Hello, thank you very much, you really helped me understand how to use Passport. But why is there an error in $token = auth()->user()->token(); I understand that it still works correctly, but I want to know if you know the reason.
@OnlineWebTutor8 ай бұрын
Yes it works because it gives you a single token data, when use tokens() it will give all tokens of that user.
@tienhoang77648 ай бұрын
Also add refresh token please 🤩
@smitnayak6257 Жыл бұрын
How can create employee table api using passport not default users table
@OnlineWebTutor Жыл бұрын
Hi, yes you can change the default table for user login. You have to do auth changes settings with auth.php file. Change auth table name from there by settings of api guard.
@smitnayak625711 ай бұрын
@@OnlineWebTutor ho gaya sir but mujhe 1.admin 2.employee ke liye karna hai to kese karu employee ke liye to ho gaya par admin ke liye kese karu auth.php:
@einnlleinhatt_ Жыл бұрын
I cant log out public function logout() { $user = auth()->user(); if ($user) { $user->token()->revoke(); return response()->json([ 'status' => 200, 'message' => 'User logged out', ]); } return response()->json([ 'status' => 401, 'message' => 'User not authenticated', ]); } It give me 401 code, i can login and copy the token.
@vinodverma2618 Жыл бұрын
Dear sir can you create a video how to host laravel website on server. What kind server need for laravel project with video play that website and how to install package of composer on server. In KZbin dont have video step by step. What is best webhost site and plan for laravel project with user upload video and that video play on server.