I am using Laravel 4 and now Im trying to find out Laravel 5
There is a problem with Naming Controller routes:
I had a route like:
Route::get('/', [
'uses' => 'HomeController@viewHome',
'as' => 'home'
]);
Route::get('/events', [
'uses' => 'EventController@viewEvent',
'as' => 'event'
]);
when I run the route as "home" (localhost / laravel /), its work fine
but when I run the route as an "event" (localhost / laravel / events): the object was not found!

and I’ve already made sure that the viewEvent method works correctly by swapping it like this:
Route::get('/', [
'uses' => 'EventController@viewEvent',
'as' => 'home'
]);
Route::get('/events', [
'uses' => 'HomeController@viewHome',
'as' => 'event'
]);
I can start viewEvent, but I can not start viewHome
any problem with my code?
======================== SOLUTION =========================== =================================================== =====
using @DamienPirzy, and I understand that when I disable / public / folder, I think I should do .htaccess in the main folder as well :)
Thank you all for the quick reply :) The problem is solved