phpvms/routes/admin.php
2017-06-10 21:32:22 -05:00

21 lines
492 B
PHP

<?php
/**
* Admin routes
*/
Route::get('/admin', [
'middleware' => ['role:admin'],
'uses' => 'DashboardAdminController@index'
]);
Route::group([
'namespace' => 'Admin',
'middleware' => ['role:admin'],
'prefix' => 'admin',
], function () {
Route::resource('airlines', 'AirlinesController');
Route::resource('aircraft', 'AircraftController');
Route::resource('aircraftclasses', 'AircraftClassController');
Route::resource('fares', 'FareController');
});