phpvms/routes/admin.php
2017-06-09 15:07:29 -05:00

18 lines
338 B
PHP

<?php
/**
* Admin routes
*/
Route::get('/admin', function () {
return redirect('/admin/airlines');
});
Route::group([
'namespace' => 'Admin',
'middleware' => 'auth',
'prefix' => 'admin',
], function () {
Route::resource('airlines', 'AirlinesController');
Route::resource('aircraft', 'AircraftController');
});