Laravel Breeze API & NextJS SPA Authentication - Breeze Next Demo

  Рет қаралды 12,365

Program With Gio

Program With Gio

Күн бұрын

In this video, we install Laravel Breeze with API stack option & connect to Next.JS app using breeze-next starter package.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: / programwithgio
THANK YOU!
🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - m.do.co/c/38b9...
Domains on Namecheap - namecheap.pxf....
Envato Elements - 1.envato.marke...
Adobe Photoshop & Premiere - clk.tradedoubl...
RESOURCES
Laravel Breeze Docs - laravel.com/do...
Breeze-Next Repo - github.com/lar...
Learn PHP 8 The Right Way Series - • Learn PHP The Right Wa...
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

Пікірлер: 45
@Zubbee
@Zubbee Ай бұрын
Hi Gio. After spending sometime looking at Next.js I'm back here. I'm finding this very useful. pairing Next.js and Laravel. Thanks Gio. I'm still soaking up your content. Cheers
@ProgramWithGio
@ProgramWithGio Ай бұрын
Great to hear 👍
@AliAbbas-si2oo
@AliAbbas-si2oo 6 ай бұрын
Your way of explaining the code is amazing 👍
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
Glad to hear, thank you
@md.saimunhossain9867
@md.saimunhossain9867 2 жыл бұрын
Great content Gio. Please make tutorial on Spatie role permission using Laravel with next js. 🙏🙏
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you. Good suggestion, added to list of topics 👍
@almahdiutshob
@almahdiutshob 2 жыл бұрын
+1
@SilindokuhleMapiyeye
@SilindokuhleMapiyeye 2 ай бұрын
@@ProgramWithGio please do share a link if its available
@marcinmaj3609
@marcinmaj3609 2 жыл бұрын
Maybe course with next and laravel? Roles permissions it will be great🤩
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Good suggestion. Added to the list of topics 👍
@RafaelCeballo
@RafaelCeballo Жыл бұрын
Great video as always! I wish you did a full application. I'm struggling to figure out how to protect routes.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you, I'll be doing more Laravel content soon so I'll take this into consideration
@clydearellano7702
@clydearellano7702 2 жыл бұрын
Thanks for the content
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome 💙
@user-tt6nc6mo7k
@user-tt6nc6mo7k 2 жыл бұрын
Hey Gio, looking forward to this your php series is fantastic by the way. Not sure why but using Taylor's breeze-next if you try to access the dashboard without logging in you can see it for a brief second before getting redirected back to the login page.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you. Check out my NextJS + Laravel Sanctum video, I talk about that flickering there & how to fix it, though it uses the older version of NextJS but the idea should be same
@mamdouhzaq
@mamdouhzaq 2 жыл бұрын
Thanks Gio
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome 💙
@Zubbee
@Zubbee 2 жыл бұрын
Oh wow. I really wish you had included install a fresh laravel application. I'll try and figure it out. Nginx is already mapped port 80:8000. So what am I changing in the laravel when I change it to Port 8000? Hmmm. This will be a challenge SHMG!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I think we spoke about this on Twitter, this is not part of the PHP series, its a separate video, so it does not follow the same structure 👍
@Zubbee
@Zubbee 2 жыл бұрын
@@ProgramWithGio yes we did. Thanks alot for the redirection.
@GuruAgent
@GuruAgent Жыл бұрын
Hi, I'm junior in IT web-devolper and my English so bad, but I installed how you and all working, but can't render to dashbord. Error: Request failed with status code 401, but user -> created in databases. Sorry for my English
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Hey, most likely a misconfiguration. I cant really help you without seeing your code, 401 can be caused by various things but it essentially means it cant authenticate the user, could be due to nextjs misconfiguration (making request wrongly), can be due to Laravel misconfiguration.
@SilindokuhleMapiyeye
@SilindokuhleMapiyeye 2 ай бұрын
Hi i managed to run the project locally and its running fine, now I deployed my laravel breeze API project on laravel vapor and used amplify for next.js frontend, everything is fine but I'm getting this error message: 419 { "message": "CSRF token mismatch." } can you please assist I tried redeploying it more than 3 times but still get the same error
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
I havent used laravel vapor & amplify so I can't really help with that. You could post in laravel discord or laracasts
@SabaMadadinia
@SabaMadadinia 5 ай бұрын
I want the user to not be able to enter the dashboard after registration and need to confirm the email to enter
@ProgramWithGio
@ProgramWithGio 5 ай бұрын
It can be implemented, there are many articles & guides on how to do it
@SabaMadadinia
@SabaMadadinia 5 ай бұрын
My access_tokens table is empty and I think it is because sanctum token is not active. Can you help me how to activate it?
@ProgramWithGio
@ProgramWithGio 5 ай бұрын
I don't think I can help with that at this time unfortunately
@anushka4027
@anushka4027 2 жыл бұрын
Hey, thank you for this! It is really useful. Are you open to sponsorships? I would love to sponsor some of your content!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Hello & thank you 🙏. What sort of sponsorship did you have in mind? You can DM me on Twitter.
@anushka4027
@anushka4027 2 жыл бұрын
@@ProgramWithGio Sure!
@thanakornboy1129
@thanakornboy1129 2 жыл бұрын
Thank you . Please make tutorial on laradock 🙏🙏🙏.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I don't use Laradock, but I do have a lesson on setting up PHP with Docker in my PHP series
@TiagoPHP
@TiagoPHP 2 жыл бұрын
thank you so much
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome 💙
@thomasvink6383
@thomasvink6383 Жыл бұрын
Great video! But when I try to register I get this error: Unhandled Runtime Error Error: Network Error Call Stack createError node_modules\axios\lib\core\createError.js (16:0) XMLHttpRequest.handleError node_modules\axios\lib\adapters\xhr.js (99:0) Not sure how to fix this.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you. Could be related to your front-end configuration. Hard to say without debugging/seeing the full code & error
@thomasvink6383
@thomasvink6383 Жыл бұрын
@@ProgramWithGio Yep sorry already found it. Made a typo myself Lolz...Thanks again for the great video.
@madanmalhotra
@madanmalhotra 2 жыл бұрын
How much possible to code it without pull git repo NEXT JS, it will better to code line by line in NEXTJS
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I don't think I understand the concern or question.
@devope
@devope 2 жыл бұрын
Use localhost in your browser, otherwise you will get an error on ajax request.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Not sure what you mean. I used localhost in browser. If you mean the port, NextJS runs on port 3000 so have to add that. Ajax requests work fine as well as you saw I registered user & logged in at the end.
@user-gr8dt6hk7s
@user-gr8dt6hk7s Жыл бұрын
I tried to change backend url to next-backend.test as I am using laragon, breeze-next application wont function
@ProgramWithGio
@ProgramWithGio Жыл бұрын
what is your front-end URL?
NextJS and Laravel Can Be Friends
23:54
Laravel
Рет қаралды 22 М.
A Review of Laravel Breeze's API and Next.js
10:44
Laracasts
Рет қаралды 11 М.
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 56 МЛН
Laravel SPA Authentication - setup and common mistakes
16:55
Set up Google OAuth with Next.js using Next-Auth!
21:00
Build SaaS with Ethan
Рет қаралды 26 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 574 М.
Laravel API with Sanctum and Breeze in 60 mins | Crash course
1:02:26
WebDevWithArtisan
Рет қаралды 14 М.
Can we use Laravel as a Next.js alternative?
20:13
Andrew Schmelyun
Рет қаралды 16 М.
Next.js App vs. Pages Router - Which One is Better?
7:31
Josh tried coding
Рет қаралды 55 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 173 М.
Laravel Sanctum SPA Tutorial - React SPA Authentication With Sanctum
14:27