buid new app

This commit is contained in:
2026-03-09 01:00:49 +08:00
commit 97aed742af
126 changed files with 19341 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Policies;
use App\Models\Category;
use App\Models\User;
class CategoryPolicy
{
public function update(User $user, Category $category): bool
{
return $user->id === $category->user_id;
}
public function delete(User $user, Category $category): bool
{
return $user->id === $category->user_id;
}
}