How can I implement Resource Controllers if I use many “get” on the laravel?

前端 未结 3 1030
攒了一身酷
攒了一身酷 2020-12-02 02:36

I have routes laravel like this :

Route::prefix(\'member\')->middleware(\'auth\')->group(function(){
    Route::prefix(\'purchase\')->group(functio         


        
3条回答
  •  日久生厌
    2020-12-02 03:14

    For the resource controller, it is pre-defined by the Laravel, which contain only the 7 method.

    Shown at below table.

    So, if you want any other method, you have to definde by youself.

    php artisan route:list
    

    You can use this to check all the route you defined.

提交回复
热议问题