-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,36 +17,30 @@ | |
'middleware' => ['localization'] | ||
], function(){ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
greut
Member
|
||
// List events page | ||
Route::get('event', 'EventController@showEvents'); | ||
Route::get('event', ['uses' => 'EventController@showEvents', 'as' => 'list_events']); | ||
|
||
Route::get('/', function () { | ||
|
||
|
||
return view('welcome'); | ||
}); | ||
|
||
// Event page | ||
Route::get('event/{id}', 'EventController@show'); | ||
Route::get('create','EventController@showCreationPage'); | ||
|
||
Route::get('create',['uses' => 'EventController@showCreationPage', 'as' => 'create_event']); | ||
|
||
|
||
//Pour l'ajout des items | ||
|
||
Route::get('item/{id}',['middleware' => 'auth', 'uses' => 'EventItemController@show']); | ||
Route::get('item/{id}',['middleware' => 'auth', 'uses' => 'EventItemController@show', 'as' => 'list_event_items']); | ||
|
||
Route::post('item','EventItemController@store'); | ||
Route::post('item',['uses' =>'EventItemController@store', 'as' => 'store_item']); | ||
|
||
|
||
//Creation page | ||
|
||
Route::post('event','EventController@store');//Route pour après l'envoie du fomulaire | ||
Route::post('event',['uses' => 'EventController@store', 'as' => 'store_event']);//Route pour après l'envoie du fomulaire | ||
|
||
|
||
//Add order | ||
Route::post('order','OrderController@userTakes'); | ||
|
||
Route::get('hello', 'EventController@test'); | ||
Route::post('order',['uses' =>'OrderController@userTakes', 'as' => 'store_orders']); | ||
|
||
Route::get('event/{id}', ['uses' => 'EventController@show', 'as' => 'show_event']); | ||
|
||
}); | ||
|
||
|
@@ -55,7 +49,7 @@ | |
return view('welcome'); | ||
}); | ||
|
||
|
||
Route::get('event/{id}', 'EventController@show'); | ||
Route::get('login', 'Auth\AuthController@login'); | ||
Route::post('login', 'Auth\AuthController@postLogin'); | ||
Route::get('auth/token/{token}', 'Auth\AuthController@authenticate'); | ||
|
@greut
Bonjour
Existe t'il une solution propre permettant d'éviter de mettre la langue avant la route ? Le but est de garder la langue actuelle ou la langue par défaut et ne pas être embêté si on "oublie" de spécifier la langue. Ou envoyer un valeur par défaut au middleware. Un façon de gérer un Prefix vide ?
Une solution serait de copier les routes hors du group, mais je tiens à ma place au paradis