'agent','middleware' => ['auth:api']], function() { // Route::post('/add_customer', [AgentActionApi::class, 'addCustomer'])->name('agent_add_customer'); }); Route::post('/agent/add_customer', [AgentActionApi::class, 'createCustomer'])->name('agent_add_customer');