I have no idea whats wrong with my code :/
Controller File - UserController.php
<?php
class UserController extends BaseController {
public function getSomething() {
echo 'It works!';
}
}
?>
File - routes.php
<?php
Route::get('/', function(){
echo "Home route";
});
Route::get('user', function(){
echo "User route";
});
Route::get('foo', 'UserController@getSomething');
?>
first route - On route browser if I type
http://myurl.com/
http://myurl.com/index.php
first route work flawlessly
second route - On route browser if I type
http://myurl.com/user
http://myurl.com/index.php/user
second route also work flawlessly
third - This doesnt work at all on either of this urls what Am I missing whats my mistake
http://myurl.com/index.php/foo
http://myurl.com/foo
PLEASE ADVICE