group(function () { Route::post('api/v1/contact/login', [Contact\LoginController::class, 'apiLogin']); }); Route::middleware('contact_db', 'api_secret_check', 'contact_token_auth')->prefix('api/v1/contact')->name('api.contact.')->group(function () { Route::get('invoices', [Contact\InvoiceController::class, 'index']); // name = (clients. index / create / show / update / destroy / edit });