php artisan make:controller Api/Backend/Supplier/Notification/SupplierNotificationController php artisan make:controller Api/Backend/Supplier/Address/SupplierAddressController php artisan make:controller Api/Backend/Supplier/Commission/SupplierCommissionController php artisan make:controller Api/Backend/Supplier/Products/SupplierProductController php artisan make:controller Api/Backend/Supplier/Products/Order/SupplierProductOrderController php artisan make:controller Api/Backend/Supplier/Referrals/SupplierReferralCodesController php artisan make:controller Api/Backend/Supplier/Referrals/Codes/SupplierReferralCodesController php artisan make:controller Api/Backend/Supplier/Transaction/SupplierTransactionController php artisan make:controller Api/Backend/Supplier/Withdrawal/SupplierWithdrawalController Route::controller(UnitController::class)->group(function () { Route::get('products', 'index'); Route::post('products', 'store'); Route::get('products/trashed', 'trashed'); Route::get('products/{unit}', 'show'); Route::put('products/{unit}', 'update'); Route::patch('products/{unit}/restore', 'restore'); Route::delete('products/{unit}', 'destroy'); Route::delete('products/{unit}/force-delete', 'forceDelete'); Route::get('products-export', 'export'); Route::post('products-import', 'import'); });