Vija

How to pass directory name in URL

Posted 2 years ago by Vija

I have created business directory in /views. URL: http://localhost/laraveldemo/blog/public/business/dashboard Route:

Route::get('dashboard',['as' => 'dashboard', 'uses' => '[email protected]']);

Controller:

public function dashboardView() { return view('business/pages.dashboard'); }

Error:

NotFoundHttpException in RouteCollection.php line 161:

How can I resolve it. Can you please help me.

Please sign in or create an account to participate in this conversation.