如何设置自定义laravel资源控制器请求URL

enter image description here

I want to change the default request url! ex.

GET /photos/{photo}/edit change to /photos/{photo}/update GET /photos/create change to /photos/createOnePhoto

You can't change default resource() routes. You can tell Laravel to not build some of them by using ->except(['update', 'create']).

Add all custom routes manually:

Route::get('photos/createOnePhoto', ['as' => 'photo.createOne', 'uses' => 'PhotoController@createOnePhoto'])