Hi there,
I was wondering if somebody could advise if my situation is easily solvable with Laravel.
I have a PHP application which has grown and grown over several years, and which uses no framework. I've chosen Laravel to attempt to remake it to modern standards.
I've been doing some tutorials and I can see how great Laravel can be, but I think one main part of my application may trip me up. The application is a "showcase" system, and every client logs in on and views their own showcase via their own URL, for example:
xyz.com/showcase/client1/
xyz.com/showcase/client2/
xyz.com/showcase/client3/
All of these showcases use the same base files. The current setup is clunky - a literal directory gets created for each of these clients, and inside that is an index.php file which simply 'includes' a "master" file, which resides in /showcase/blahblah/
This master file shows a login page (which may or may not be customised for that client - all done with PHP and DB queries) if necessary, or shows the resources otherwise. The resources show that client's specific showcase contents. Imagine it like this:
--- Client is not logged in. URL = xyz.com/showcase/client1/index.php?login=1
--- Client is logged in. URL = xyz.com/showcase/client1/index.php?resources=1
It's important that I keep the same URL structure, so I need to somehow make Laravel work with a dynamic URL, AND use that URL value to do future work - I need to get the specific resources to fill the views for that client (find what I'm meant to show for client1, for example).
Is such a thing possible with Laravel? I believe it is, but I'm not sure where to look.
Thanks!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community