user()->cannot('update', $agent->company)) { abort(403, 'Unauthorized action'); } if ($agent->trashed()) { $agent->restore(); } return to_route('company.agents.table'); } }