route get method with parameter

on route

Route::get('/organizations/{id}','OrganizationController@getIndex');

on controller

class OrganizationController extends BaseController {
    public function getIndex( $id = 0 )
    {
        return View::make('bof.organization');
    }
}

Related posts:

This entry was posted in laravel4. Bookmark the permalink.