Answer the question
In order to leave comments, you need to log in
Is it possible to use similar routes without unification in Laravel?
I use the Laravel + Vue bundle, I form the routes in the components using the library (ziggy-js)
I want to make the following url structure domain.com/category
domain.com/tag for
the web.php
example:
Route::get('{category}', ['as' => 'category', 'uses' => '\App\Http\Controllers\[email protected]']);
Route::get('{tag}', ['as' => 'tag', 'uses' => '\App\Http\Controllers\[email protected]']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question