lundi 18 janvier 2016

Setup different frontend & backend application endpoints in Laravel 5

I've posted this on Laravel.io too, but no answer yet: http://ift.tt/1QjwnoR

I've been struggling figuring this out but no luck yet - couldn't find an answer anywhere.

I have a regular public-facing website for which I need an admin interface. Assuming the website is at example.com, I want the admin interface to be accessible from example.com:3000.

I've tried domain routing, it doesn't seem to be working. The idea is to share all the business logic, but isolate assets and routes - for instance, accessing "/" would produce different results on the frontend (showing the homepage) and on the backend (showing a dashboard). I also need different middleware authentication, but I have a hunch that's going to be easy once I figure out how to set this up.

If it's easy to add different sessions, that would also be cool, but I can live without it.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire