first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Policies;
use App\Models\EquipmentCategory;
use App\Models\User;
class EquipmentCategoryPolicy
{
public function before(User $user, string $ability): bool|null
{
return $user->isAdmin() ? true : null;
}
public function viewAny(User $user): bool
{
return false;
}
public function view(User $user, EquipmentCategory $equipmentCategory): bool
{
return false;
}
public function create(User $user): bool
{
return false;
}
public function update(User $user, EquipmentCategory $equipmentCategory): bool
{
return false;
}
public function delete(User $user, EquipmentCategory $equipmentCategory): bool
{
return false;
}
}