phpvms/routes/admin.php
2017-06-10 22:17:45 -05:00

21 lines
487 B
PHP

<?php
/**
* Admin routes
*/
Route::get('/admin', [
'middleware' => ['role:admin'],
'uses' => 'DashboardController@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');
});