<?php
 namespace App\Policies; use App\Models\Admin; use App\Models\Registrar; use Illuminate\Auth\Access\HandlesAuthorization; class RegistrarPolicy { use HandlesAuthorization; public function viewAny(Admin $admin) { return $admin->hasPermissionTo('view registrars'); } public function view(Admin $admin, Registrar $registrar) { return $admin->hasPermissionTo('view registrars'); } public function create(Admin $admin) { return $admin->hasPermissionTo('create registrars'); } public function update(Admin $admin, Registrar $registrar) { return $admin->hasPermissionTo('update registrars'); } public function updateAny(Admin $admin) { return $admin->hasPermissionTo('update registrars'); } public function delete(Admin $admin, Registrar $registrar) { return $admin->hasPermissionTo('delete registrars'); } public function deleteAny(Admin $admin) { return $admin->hasPermissionTo('delete registrars'); } } 