Using a Laravel REST API with a NuxtJs App

  Рет қаралды 36,829

Laravel

Laravel

Күн бұрын

Пікірлер: 51
@perfect.stealth
@perfect.stealth 2 жыл бұрын
You guys at Laravel are something special. Thank you for making our lives easier ❤
@letslearnwebdev
@letslearnwebdev 2 жыл бұрын
Best combination I've worked with. Thanks for the video. Well explained.
@themsaid
@themsaid 2 жыл бұрын
I love Nuxt TBH :)
@yamenashraf2495
@yamenashraf2495 2 жыл бұрын
Thank you Mohamed! This is really great. I wanted to point out to asyncData hook which I think is more relevant in this case instead of fetch hook. With asyncData you won't need to initialize data as the returned values are merged to the component's state already and also you won't need to put a loader in every component/page. Thanks so much for your time and explanation.
@themsaid
@themsaid 2 жыл бұрын
Interesting. I’ll look into that. Thanks 🙂
@JacquesvanWyk
@JacquesvanWyk 2 жыл бұрын
Man this is so awesome to see. Want to really thank you for making these videos and those valet tips was awesome did not know about the proxy, probably because I was lazy and did not read docs.
@srijay_guitarist
@srijay_guitarist 11 ай бұрын
I have a question. What if I want to fetch the posts but API is protected(needs authentication) and the frontend doesn't need user signup or login as it just displays the posts?
2 жыл бұрын
Great! Thank you! Mohamed, Please, make videos about e-commerce app with this stack.
@shofada
@shofada 2 жыл бұрын
Wowww!! You dit it! That was fast. I am so grateful. 🙏🙏🙏
@yashbarot5248
@yashbarot5248 2 жыл бұрын
Thanks for this super combination. Loved it 🎉
@networkerbowofade8477
@networkerbowofade8477 Жыл бұрын
We have nuxt3, does this tutorial applicable to nuxt3, or is there any chnages
@hmatpin
@hmatpin Ай бұрын
Is this still relevant, or should things be done with Inertia? what would be the difference?
@kwameadoko9542
@kwameadoko9542 20 күн бұрын
Talking about hosting on the same server means Inertia does make sense. But most of the time you only connect to external API's on different servers, where you might not even have access to.
@behzodjon
@behzodjon 2 жыл бұрын
Great! Thank you! Please, make videos about laravel+nuxt js
@themsaid
@themsaid 2 жыл бұрын
What else do you want to see?
@behzodjon
@behzodjon 2 жыл бұрын
@@themsaid e-commerce application, please
@persegona77
@persegona77 2 жыл бұрын
@@themsaid I'd like to see a similar video to what you have here only using Sanctum's Api Tokens instead of the SPA auth. So far, every video I search for uses the SPA auth, which I understand is preferred, but I want to see how it looks when both the backend and the frontend are on different TLDs.
@hamidreside
@hamidreside 2 жыл бұрын
tried your setup but still block by cors
@darkmode404
@darkmode404 2 жыл бұрын
What is the valet alternative for windows local? Is xampp and virtual host okay?
@aryaaditiyaa
@aryaaditiyaa 2 жыл бұрын
Try laragon
@EL_PANDA_742
@EL_PANDA_742 2 жыл бұрын
Can I use the Vue app's folder inside Laravel's folder?
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
For context, what he showed here is how to use Nuxtjs as a separate frontend for the ergodnc laravel backend, this way you can push changes with api project without affecting the frontend or change something with frontend and never touch the api. Now you can also make a fresh laravel application with Vue as your view stack instead of Blade. Laravel actually has a first party package called Laravel Jetstream that does the scaffolding for Laravel + Vue + Tailwind stack which gives you authentication out of the box. With this setup you are then required to have your Vue components and scripts within your laravel project.
@Paltibenlaish
@Paltibenlaish 2 жыл бұрын
it's missing how to redirect when you login and redirects you to the previous page you wanted to visit
@jonice4229
@jonice4229 2 жыл бұрын
thanks, how do you deploy this project on live?
@crodrigor
@crodrigor Жыл бұрын
how config pm2 with laravel for using ssr?
@dev_jeongdaeri
@dev_jeongdaeri 2 жыл бұрын
Great content👍👍
@pradeepspace3
@pradeepspace3 2 жыл бұрын
Very nice explanation !
@themsaid
@themsaid 2 жыл бұрын
Glad you like it :)
@swatantra0
@swatantra0 2 жыл бұрын
will you please make a video for authentication laravel passport and nuxt js please
@mityukov
@mityukov 2 жыл бұрын
A question: if i want a multitenant app (acc1.ergo.test, acc2.ergo.test, etc) - what should be in the sanctum-stateful-domains?
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
Do it like this: SANCTUM_STATEFUL_DOMAINS=.ergo.test This is discussed on the laravel Sanctum documentation at CORS and COOKIE section
@anbuselvanrocky
@anbuselvanrocky 2 жыл бұрын
What suppose, i want my frontend (lets say, vue) on same domain and I'll be using that backend(laravel) API for mobile app? Need to configure separately for mobile & other platform for accessing apis?
@eslamabdallahabass5662
@eslamabdallahabass5662 2 жыл бұрын
this doesn't work with nuxt3
@AneesKhan-uz4mz
@AneesKhan-uz4mz 2 жыл бұрын
now how about doing with inertia?
@md.mehedihasan800
@md.mehedihasan800 2 жыл бұрын
Please create a Laravel Price Fielder project where I can filter the product price. I can change the color filter size filter through the check box. There is no such project on KZbin yet.
@perfect.stealth
@perfect.stealth 2 жыл бұрын
I think you're missing the point here. He's not here to teach you Vue. He wants to showcase how easy the frameworks can work together. You should learn basic Vue bro. Then your price filter will be a walk in the park.
@vokalout
@vokalout 2 жыл бұрын
Have you heard of quasar? Can you make a video for it and laravel, with auth, etc? Thanks
@mdrifatkhan2381
@mdrifatkhan2381 Жыл бұрын
nyc
@1boompje
@1boompje 2 жыл бұрын
Thank you!
@abdurrahman710
@abdurrahman710 2 жыл бұрын
Nice videos!
@themsaid
@themsaid 2 жыл бұрын
Glad you like it :)
@nabeelyousafpasha
@nabeelyousafpasha 2 жыл бұрын
Respect from Pakistan 🇵🇰
@vodacbao
@vodacbao 2 жыл бұрын
like
@GergelyCsermely
@GergelyCsermely 2 жыл бұрын
Thanks
@marufjonyoqubov7950
@marufjonyoqubov7950 2 жыл бұрын
Great
@enterusername7746
@enterusername7746 2 жыл бұрын
A framework for a framework? I think I need a framework for that.
@themsaid
@themsaid 2 жыл бұрын
It's called a "Meta Framework" :D
@maflones
@maflones 2 жыл бұрын
I wish you could learn the language, because you are unwatchable. You have a voice best suited for the silent movies.
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
I've watched several of his videos and it is not that bad. Better yet use earphones if it's not loud enough.
@muhammadyasir7015
@muhammadyasir7015 2 жыл бұрын
After running the valet proxy commands now my "api.todoapp.test" and "app.todoapp.test" both are pointing to the nuxt app and nuxt app is beig opened when I hit both of these URLs. Anyone know the issue?
@alifnuryana2166
@alifnuryana2166 Жыл бұрын
me too
Nuxt Authentication with Laravel Sanctum
14:46
Codecourse
Рет қаралды 32 М.
Using a Laravel REST API with a NextJs App
19:03
Laravel
Рет қаралды 65 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 41 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 9 МЛН
Laravel SPA Authentication - setup and common mistakes
16:55
Data Fetching With Nuxt 3
20:31
John Komarnicki
Рет қаралды 35 М.
GraphQL w/ Laravel & Vue - Overview - Part 1
37:14
Andre Madarang
Рет қаралды 55 М.
Laravel 10 + Vue 3 + Vite | 2023
39:24
AreaWeb
Рет қаралды 28 М.
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 548 М.
The Nuxt big thing in web development?
4:55
Fireship
Рет қаралды 658 М.
PHP is the future
34:27
Aaron Francis
Рет қаралды 179 М.
NextJS and Laravel Can Be Friends
23:54
Laravel
Рет қаралды 26 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН