use AppHttpControllersOrderController;
Route::controller(OrderController::class)->group(function () {
Route::get('/orders/{id}', 'show');
Route::post('/orders', 'store');
});
use AppHttpControllersOrderController;
Route::controller(OrderController::class)->group(function () {
Route::get('/orders/{id}', 'show');
Route::post('/orders', 'store');
});
Route::controller(DeviceApiController::class)
->prefix('/devices')
->as('devices.')
->group(function () {
Route::get('/index', 'index')->name('index');
Route::get('/{serialNumber}/show', 'show')->name('show');
});
Route::group(['prefix' => 'admin']){
Route::get('/',function(){
//...
});
}
Route::middleware(['first', 'second'])->group(function () {
Route::get('/', function () {
// Uses first & second middleware...
});
Route::get('/user/profile', function () {
// Uses first & second middleware...
});
});