Dealing with thousands of routes, we ended up doing the following:
public function mapContract() { Route::middleware(['web', 'auth']) ->namespace($this->namespace) ->group(function () { Route::get('addworking/contract', [ 'uses' => "ContractController@dispatcher", 'as' => "addworking.contract.contract.dispatcher", ]);
With the same pattern everywhere, makes it super easy to find a route using its name or its URI :-)
Thanks, I appreciate your feedback. This surely is a clean approach to structure routes.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Dealing with thousands of routes, we ended up doing the following:
With the same pattern everywhere, makes it super easy to find a route using its name or its URI :-)
Thanks, I appreciate your feedback. This surely is a clean approach to structure routes.