feat: meal post ingredients

This commit is contained in:
2026-05-18 14:39:57 +02:00
parent 7916e7f718
commit 7a907f2b17
12 changed files with 404 additions and 10 deletions
@@ -0,0 +1,48 @@
<?php
namespace App\Policies;
use App\Models\MealPostIngredients;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class MealPostIngredientsPolicy
{
use HandlesAuthorization;
public function viewAny(User $user): bool
{
return true;
}
public function view(User $user, MealPostIngredients $mealPostIngredients): bool
{
return true;
}
public function create(User $user): bool
{
return true;
}
public function update(User $user, MealPostIngredients $mealPostIngredients): bool
{
return true;
}
public function delete(User $user, MealPostIngredients $mealPostIngredients): bool
{
return true;
}
public function restore(User $user, MealPostIngredients $mealPostIngredients): bool
{
return true;
}
public function forceDelete(User $user, MealPostIngredients $mealPostIngredients): bool
{
return true;
}
}