Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Route::get('/', 'HomeController@index')->name('home');
- Route::get('/showContent/{content}', 'HomeController@showContent');
- Route::get('/{content?}', 'HomeController@index')->name('home');
- public function index($slug)
- {
- if ($slug != null) {
- $this->showContent($slug);
- } else {
- return view('layouts.frontend.content');
- }
- }
Add Comment
Please, Sign In to add comment