<?php Route::group(['prefix' => 'categorie'], function () { standardRoutes('categorie', 'CategoriesController'); });
<?php Route::group(['prefix' => 'manager'], function () { standardRoutes('manager', 'ManagersController'); });
<?php Route::group(['prefix' => 'tour'], function () { standardRoutes('tour', 'ToursController'); # Encode Date & FormuleCompet d'une compétition -> appelé lors de la création de la compet Route::get('formule/{backUrl?}/{compet_id?}', ['as' => 'tour.formule', 'uses' => 'ToursController@formule']); Route::post('formule', ['as' => 'tour.formule', 'uses' => 'ToursController@storeFormule']); });
<?php Route::group(['prefix' => 'entreeplayer'], function () { standardRoutes('entreeplayer', 'EntreeplayersController'); # Select Page pour EntreePlayer Route::get('selectplayer/{backUrl?}/{id?}', ['as' => 'entreeplayer.selectplayer', 'uses' => 'EntreeplayersController@selectPlayer']); # Place le joueur choisi par Select dans l'Entreeplayer donné Route::get('place/{backUrl?}/{player_id?}/{id?}', ['as' => 'entreeplayer.place', 'uses' => 'EntreeplayersController@place']); });
<?php Route::group(['prefix' => 'entree'], function () { standardRoutes('entree', 'EntreesController'); # Add one entree with player selected by select route Route::get('add/{backUrl?}/{player_id?}', ['as' => 'entree.add', 'uses' => 'EntreesController@add']); });
<?php Route::group(['prefix' => 'userclub'], function () { standardRoutes('userclub', 'UserclubsController'); # Add one club Route::get('add/{backUrl?}/{club_id?}', ['as' => 'userclub.add', 'uses' => 'UserclubsController@add']); });
<?php Route::group(['prefix' => 'compet'], function () { standardRoutes('compet', 'CompetsController'); });
<?php Route::group(['prefix' => 'club'], function () { standardRoutes('club', 'ClubsController'); });
<?php Route::group(['prefix' => 'domaine'], function () { standardRoutes('domaine', 'DomainesController'); });
<?php Route::group(['prefix' => 'competcategorie'], function () { standardRoutes('competcategorie', 'CompetCategoriesController'); # Add one categorie Route::get('add/{backUrl?}/{categorie_id?}', ['as' => 'competcategorie.add', 'uses' => 'CompetcategoriesController@add']); # Change tee_id Route::get('changetee/{backUrl?}/{id?}', ['as' => 'competcategorie.changetee', 'uses' => 'CompetcategoriesController@changetee']); # Save tee_id Route::post('savetee', ['as' => 'competcategorie.savetee', 'uses' => 'CompetcategoriesController@savetee']); });