Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Khin Zin Zin Thinn's avatar

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.

0 likes
2 replies
Khin Zin Zin Thinn's avatar

@Lumethys I mentioned about this in my second paragraph. It creates FRONTEND_URL for only one frontend. In my case, there will be two frontends.

Please or to participate in this conversation.