vendredi 15 février 2019

How create one route with multi method in there?

I would like create one route with index method and all method name if exist can be call. Is any way to do this ?

Route::get('/{params}/table', TableController@index)->name(table.index)

Now in controller i would like create index method and all request should go there. I want get params as method and try call if exist.

public function index(Request $request) {
        dd($request);
    }

How can i do this ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire