there is an official NextJs and Laravel boilerplate, manage by Laravel core team. You should check it out: https://github.com/laravel/breeze-next
How to create separated admin dashboard and frontend with NextJs from Laravel Backend API
I am now working on a project where I will create 2 NextJs apps for Frontend (Normal Users + Visitors) and Admin Dashboard (Admin Users). Laravel will be used for the backend APIs.
I found a guide on the Laravel docs where it mentioned installing breeze with php artisan breeze:install api command that will create a FRONTEND_URL in .env file and NextJs will be able to consume the APIs. It mentioned only one frontend URL so does that mean I will only be able to connect to only one NextJs app with this config?
Could you please let me know which authentication approach is the best in this case? This is the first time that I am trying to authenticate the apps with the backend APIs.
Please or to participate in this conversation.