I wan to use Route::get with route options, function and where. following is my route code:
Route::get('/view/{id}', array('uses' =>'BookController@view','as' => 'book.view'), function($id)
{
die('hello');
})->where('id', '[A-Za-z]+');
so when i call url view/4 it will open 404 page and when i call view/abc it will run controller code but in neither case function code is not executing.
How can i fix this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire