Criado por Luis Rojas
mais de 7 anos atrás
|
||
It needs a wildcard in the route.This wildcard needs to match against the controller method who's expecting the wildcard.Laravel assumes a primary key for the model wildcard.Route::get('Model/{model}', 'ModelController@nameMethod');public function nameMethod(Model $model){ return $model;}
Quer criar suas próprias Notas gratuitas com a GoConqr? Saiba mais.