Are you using Laravel 5 Auth system?
May 10, 2015
7
Level 3
Change Base URL after Log In
Here is the URL
http://localhost:8000/login
Once I log in, I want to change base URL from
http://localhost:8000 to http://localhost:8000/app/
This is how my URLs should look. The thing is I have already written a href='/settings' and Request::is('settings') and don't want to rewrite the code again to match new URL structure.
I don't want to go to each link and append 'app/' now.
http://localhost:8000/app/analytics
http://localhost:8000/app/settings
Level 88
Like I said before, it's wiser to update your routes to use a route name and then you can append any kind of variables to your url.
URL::route('bills.yearly-visits', ['search' => 'Matt']);
Just read the documentation on it ;)
Please or to participate in this conversation.