路由问题, ['only' => ['show', 'update', 'edit']]); 里面的 only 代表什么 .? ?看不懂 ?
Route::resource('users', 'UsersController', ['only' => ['show', 'update', 'edit']]);
资源路由,当url === /users/{user} 的时候会去UsersController 找show方法 .. 但是后半句
['only' => ['show', 'update', 'edit']]);
的only 是什么意思? 谢谢前辈解答
推荐文章: