Sajjad Ali's avatar

Headless Laravel with Vue Tutorial?

Hi,

Can you guys recommend a tutorial for a simple CRUD application (Todo app maybe) on Laracasts (or maybe on some other website) where Laravel is used completely headless and Vue as front-end/back-end with auth via Sanctum. Users can create todos and see their own todos once they're login.

Not looking for long/complicated stuff where laravel is explained. Maybe something short and simple.

Thanks

0 likes
6 replies
Sajjad Ali's avatar

@martinbean I have to recommend a simple tutorial to someone and show them how easy it is to create a simple API in Laravel while using it on the front-end (Vue 3 or React etc), which is completely separate.

@imrodrigoalves I have already looked into Laravel Vue and Spa and that's not what I'm looking for.

What I'm looking for is something like creating a Todo resource, installing Sanctum, login, getting JWT token, creating, updating, get todos.

Even if it's only the back-end part with all CRUD routes and how user can fetch their own records (todos) after authentication and test in POSTMAN. That would help.

The front-end part would be a bonus but not necessary. The point is to show the Laravel setup. I thought there must be something like this here on Laracast or Youtube but not getting any luck so far.

martinbean's avatar

@Sajjad Ali Because not a tutorial for every specific thing exists.

Find some tutorials that covers each part (creating an API with Laravel, consuming an API from Vue, etc). You‘re not going to find one single tutorial that covers exactly what you want every time.

1 like

Please or to participate in this conversation.