Laravel named route for resource controller

后端 未结 7 1176
一向
一向 2020-11-30 22:09

Using Laravel 4.2, is it possible to assign a name to a resource controller route? My route is defined as follows:

Route::resource(\'faq\', \'ProductFaqCont         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 23:00

    Using Laravel 5.5

    Route::resource('admin/posts/tags', 'PostTagController', ['as' => 'posts']);
    

    important to keep in mind the "resource"

    For example, I send something from my project:

    Route::resource('admin/posts/tags', 'PostTagController', ['as' => 'posts']);
    

提交回复
热议问题