Initial commit - Physiotherapy Clinic Management System

This commit is contained in:
Deploy committed 2026-03-10 00:38:51 +03:00
commit dbb326f2cc
300 files changed
+144285

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Policies;
use App\Models\User;
class LedgerPolicy
{
public function viewAny(User $user): bool
{
return in_array($user->role, ['admin', 'manager']);
}
public function view(User $user): bool
{
return in_array($user->role, ['admin', 'manager']);
}
public function create(User $user): bool
{
return in_array($user->role, ['admin', 'manager']);
}
public function viewReports(User $user): bool
{
return in_array($user->role, ['admin', 'manager']);
}
}