phpvms/routes/admin.php

21 lines
492 B
PHP
Raw Normal View History

2017-06-10 03:47:02 +08:00
<?php
/**
* Admin routes
*/
2017-06-11 09:27:24 +08:00
Route::get('/admin', [
'middleware' => ['role:admin'],
'uses' => 'DashboardAdminController@index'
]);
2017-06-10 03:47:02 +08:00
Route::group([
'namespace' => 'Admin',
2017-06-11 09:27:24 +08:00
'middleware' => ['role:admin'],
2017-06-10 03:47:02 +08:00
'prefix' => 'admin',
], function () {
Route::resource('airlines', 'AirlinesController');
Route::resource('aircraft', 'AircraftController');
Route::resource('aircraftclasses', 'AircraftClassController');
2017-06-11 09:27:24 +08:00
Route::resource('fares', 'FareController');
2017-06-10 03:47:02 +08:00
});