I have a custom route controller that checks the database before returning view. that being said I'm not passing any parameters to this controller besides the first and never will. Is there a way to stop laravel from expecting a parameter? I'm getting this error:
mydomain/login ---- Works Fine
mydomain/login/sometext -- Throws error
"Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException" /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php
routes.php
Route::get('/', function(){return View::make('main.landing');});
Route::get('/{path}', array('uses' => 'RouteController@index'));
Then in my RouteController I take $path and query database to check if route exists and then displays the custom view.
Any help would be greatly appreciated! Thanks!