Forum Assistance How to pass directory name in URL
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.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
How to pass directory name in URL
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.