隐式路由模型绑定
Route::get('conferences/{conference}', function (Conference $conference) {
return view('conferences.show')->with('conference', $conference);
});public function getRouteKeyName() {
return 'slug';
}Last updated
Route::get('conferences/{conference}', function (Conference $conference) {
return view('conferences.show')->with('conference', $conference);
});public function getRouteKeyName() {
return 'slug';
}Last updated