I am new in Laravel (v4.0.5) and according the website http://laravel.com/docs/routing and other book I found, make a route its as easy as this
Route::any('foo', function()
{
return 'Hello World';
});
so, I try at my host
http//myhost/public/foo
(and I have to use /public due if i only enter to my host directly where is the folder, I see the structure of the framework... anybody know why is that?)
But I get not found
I've tried
Route::any('user','UserController@index');
I have created my controller like this
<?php
class UsersController extends BaseController {
public function showWelcome()
{
return View::make('users');
}
public function getIndex()
{
return View::make('users');
}
}
And tried with /users
but nothing...
Any idea what I'm doing wrong?