I am very confused as to why this is happening but here is the issue guys. Basically I am building an app using laravel4 I want to go to this URL
http://app.tld/books
However I get this error every time:
404: The requested URL /books was not found on this server.
However in my routes.php file I have the route defined:
Route::get('/books', 'BookController@index');
I also have a view and relevent method in Controller:
public function index(){
$books = Book::all();
return View::make('book.index')->with('books', $books);
}
/publicdirectory of the project, or just the project root?php artisan dump-autoload? Maybe Laravel didn't yet see your BookController.php artisan dump-autoloadfrom command prompt/terminal./publicand also ran thedump auto-loadit is strange because in work I can run the project no problem. I've checked it out usingSVNintoNetbeans