I have 3 routes in a laravel project
- Route::get('/', 'HomeController@index');
- Route::get('/videos', 'VideoController@index');
- Route::get('/movies', 'MoviesController@index');
I have created a settings model & migration where the admin can select the home page. Now what I want to achieve is based on the selection, the route should be set as home page.
Eg: If admin selects example.com/videos as Home Page then videos should be accessed on example.com/