Can you post your routes.php file and your associated controller code?
of course,
Here the routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function(){
return "All cats";
});
Route::get('cats/{id}', function($id){
return "Cat #$id";
});
and here is the controller :
class HomeController extends BaseController {
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
|
*/
public function showWelcome()
{
return View::make('hello');
}
}
I hope I have the right controller. The books is not talking about controllers yet.
Roelof
The requested URL /cats/123 was not found on this server.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community