leostereo's avatar

Laravel backend and vuejs spa setting

Hi guys, Its been a lot of time since I dont work with both laravel and vue on same project.

I need to create a vuejs spa + laravel backend.

Is there a recommended path to setup the project?

Im reading oficial docs but can not decide yet:

It seems I can go with mix or the

php artisan ui vue

scafolding tool. Any advice would be wellcome.

0 likes
1 reply
MohamedTammam's avatar
Level 51

I would recommend to install a new Laravel project that comes with Sanctum and Vite by default.

Setting up a Vue project with Vite plugin for Laravel is easy: https://laravel.com/docs/9.x/vite#vue

And there're a lot of starting projects for Laravel, Vue, Vite and Sanctum online that you can pick from, but I don't think it's hard to do it yourself from scratch.

Please or to participate in this conversation.