cretueusebiu / laravel-nuxt

A Laravel-Nuxt starter kit.
https://laravel-nuxt.cretueusebiu.com
MIT License
1.15k stars 262 forks source link

Not an issue, more of a question. Is it feasible for Laravel Spark to integrate with laravel-nuxt? #21

Closed admench closed 6 years ago

admench commented 6 years ago

Not an issue, more of a question. Is it feasible for Laravel Spark to integrate with laravel-nuxt?

Thanks for what seems to be a fantastic package.

admench commented 6 years ago

Presumably it would be better to start a fresh Laravel Spark app, and provide an API to a separate Nuxt project in this case.

https://spark.laravel.com/docs/6.0/api

cretueusebiu commented 6 years ago

This is just an template example that can be modified to work with Spark. But you'll have to re-write a lot to port it from blade views to vue templates.

I was thinking about a "pro" version of a spa project with more features, like billing, admin, etc.

admench commented 6 years ago

In my situation, I feel it may be best to split the app up with app-centric pages handled by nuxt, and let laravel spark handle the account pages itself. This would have to be handled by a clever nginx config to handle requests and pass them to either nuxt or laravel's routing.