Getting started with Laravel Fortify and Sanctum

  Рет қаралды 20,321

Andrew Schmelyun

Andrew Schmelyun

Күн бұрын

Пікірлер: 33
@samuelkuma5752
@samuelkuma5752 2 жыл бұрын
Thank you for being clear and concise.
@EmileJobity
@EmileJobity 2 жыл бұрын
Have a nice calm voice. Made listening to this easy
@atiquechowdhury8910
@atiquechowdhury8910 3 жыл бұрын
Dude, you never cease to amaze. Thanks so much for making stuff for us little guys.
@aschmelyun
@aschmelyun 3 жыл бұрын
Thank you for watching and enjoying what I make!
@robdorn420
@robdorn420 3 жыл бұрын
Thank you again Andrew for a great video. Could you please make a video on a SPA solution with a Laravel backend and Vue frontend as separate Docker containers using Sanctum and docker-compose? That would be very helpful.
@JamesAutoDude
@JamesAutoDude 2 жыл бұрын
Might as well just have him code the whole project for you at that point lol
@ultimatepipsfrx
@ultimatepipsfrx Жыл бұрын
@@JamesAutoDude Vawulence Promax
@thomaspotterdotexe
@thomaspotterdotexe 3 жыл бұрын
13:09 What if I didn't set it to false? Since I want to make an api for my mobile app and just web app with SPA in one project. Is that possible?
@mohammedzaid6634
@mohammedzaid6634 3 жыл бұрын
what a great video and excellent explanation!
@andrewang707
@andrewang707 3 жыл бұрын
Hi Andrew, if we change the middleware of all the API routes to `web` in the RouteServiceProvider file, would the future API calls from other devices (e.g. mobile) be affected? If we are going to change the middleware, why don't we just place all the route in the web.php routing file and prefix `/api/` to the route then?
@admbb0
@admbb0 2 жыл бұрын
1:27 Laravel Breeze does not implement Fortify. Breeze is more like Laravel UI.
@chesnelnicolas8079
@chesnelnicolas8079 3 жыл бұрын
Hello Andrew I can't find part 1 et 3 of your series. It would be nice to have the link in the description. Thank you for sharing your stuff it's amazing!
@AliRaza-wq6nh
@AliRaza-wq6nh 3 жыл бұрын
the problem is here fortify is not available with Lumen; my primary goal is to make the API, so should I go with Laravel + Fortify or Lumen ?
@aschmelyun
@aschmelyun 3 жыл бұрын
Me, personally, I'd go with Laravel + Fortify. Lumen is great for very simple APIs that you expect massive amounts of requests to. If you need any other features, it's usually a lot of work to add them to it, without a lot of benefit over just using the full Laravel framework.
@raident29
@raident29 11 ай бұрын
i have laracast, is the whole series available there?
@andamhamdan2600
@andamhamdan2600 3 жыл бұрын
where the source code you get from login.blade and register.blade and auth.blade?
@sanjohn1753
@sanjohn1753 3 жыл бұрын
thank you for your video tutorial am wondering how can we update user information by method put vuejs?
@Lakuapik
@Lakuapik 3 жыл бұрын
thank you! do you have any suggestion on migrating laravel passport to sanctum? i use passport just for the auth:api with personal access token.
@germanshvetsov3076
@germanshvetsov3076 3 жыл бұрын
Andrew, thanks for great guides. Сould you explain to me why we use for api web middleware? Is it because we are using session cookies? And when we use api middleware we use tokens?
@bxrank
@bxrank 3 жыл бұрын
How to add prefix in default /login & /register api in laravel sanctum ? Ex. Default api are /login & /register I want /api/login & /api/register How to achieve this? Also in /user api i am getting many fields like id,name,email,created_date I just want name and email id How to do that?
@maverickchan9552
@maverickchan9552 3 жыл бұрын
very clear thanks
@evelyn790
@evelyn790 3 жыл бұрын
A small question, hopefully someone is able to guide me. I managed to register using my email without the .com part, where can we add the necessary checks so that a user will see an error if they fail to enter a correct email address? Thanks!
@javierr5845
@javierr5845 3 жыл бұрын
Why did you change the middleware from api to web?
@kristiyan.zhelyazkov
@kristiyan.zhelyazkov Жыл бұрын
because only web middleware uses session cookies (in that case the session is stored there)
@perfect.stealth
@perfect.stealth 3 жыл бұрын
Why make a SPA that is based in the same application, instead of decoupling it? The way i see it, this method might as well just use classic PHP authentication with Laravel Auth Please enlighten me if i am wrong
@okhaeadeleye5313
@okhaeadeleye5313 Жыл бұрын
Hi thanks for the explanation but I tried your steps, but I kept getting CSRF token mismatch when I hit the login function for the SPIA. Not sure what I'm getting wrong
@okhaeadeleye5313
@okhaeadeleye5313 Жыл бұрын
It finally worked. Turns out, while trying things out and following all sorts of rabbit holes, I had added protected $middleware = [ \App\Http\Middleware\TrustHosts::class, \Illuminate\Session\Middleware\StartSession::class, .... ] in the Kernel.php. After removing them, it worked like a breeze. Jeez...took me over an hour.
@josuebarros-desenvolvedorw2490
@josuebarros-desenvolvedorw2490 3 жыл бұрын
Your channel is awesome! What do you think about creating a simple LMS tutorial?
@aschmelyun
@aschmelyun 3 жыл бұрын
Good idea! That'll be a pretty big undertaking, even if I keep it simple, but I'll add it to my backlog of video ideas (so keep an eye out in the future!)
@josuebarros-desenvolvedorw2490
@josuebarros-desenvolvedorw2490 3 жыл бұрын
@@aschmelyun thanks for the reply bro! This project will be trendy I'm almost sure! Its pretty different than the other laravel tutorials right there ;)
@chrispanagapko
@chrispanagapko 3 жыл бұрын
What IDE/Editor are you using?
@aschmelyun
@aschmelyun 3 жыл бұрын
Hey Chris! I'm using PHPStorm with the Material Theme UI plugin set to the Atom One Dark color scheme.
@nyplace1
@nyplace1 3 жыл бұрын
I wish you would speak a bit less robotic, and less concise, you are talking to people who are trying to learn, elaborate on things, you have an amazing voice but you are not using it to its fullest. I still had to watch a foreign guy who barely speaks english after your video because he actually explained things in greater detail... i wish you would do the same.
Laravel SPA Authentication - setup and common mistakes
16:55
Getting started with Laravel Breeze and Jetstream
28:07
Andrew Schmelyun
Рет қаралды 12 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Getting started with Laravel Passport and OAuth2
29:52
Andrew Schmelyun
Рет қаралды 76 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 135 М.
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 92 М.
Jetstream/Fortify Multi-Auth: Roles, Permissions and Guards
19:00
Laravel Daily
Рет қаралды 101 М.
5 tips for supercharged Laravel Eloquent queries
16:29
Andrew Schmelyun
Рет қаралды 68 М.
Authentication in Vue using Laravel Sanctum
23:06
Andrew Schmelyun
Рет қаралды 72 М.
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 552 М.
Adding Social Logins with Laravel Socialite
10:24
Andrew Schmelyun
Рет қаралды 56 М.
Create an API with Laravel Passport & Personal Access Tokens
24:24
Laravel Jetstream: Add CRUD with User Roles
16:51
Laravel Daily
Рет қаралды 156 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН