<?php namespace App\Policies; use App\Models\User; class InvoicePolicy { /** * Determine whether the user can view any models. */ public function viewAny(User $user): bool { return auth()->user()->is_admin; } }