todo/app/Policies/LabelPolicy.php

67 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2024-04-27 15:06:00 +03:00
<?php
namespace App\Policies;
use App\Models\User;
2024-05-02 09:13:05 +03:00
use App\Models\Label;
2024-04-27 15:06:00 +03:00
use Illuminate\Auth\Access\Response;
class LabelPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
//
}
/**
* Determine whether the user can view the model.
*/
2024-05-02 09:13:05 +03:00
public function view(User $user, Label $label): bool
2024-04-27 15:06:00 +03:00
{
//
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
//
}
/**
* Determine whether the user can update the model.
*/
2024-05-02 09:13:05 +03:00
public function update(User $user, Label $label): bool
2024-04-27 15:06:00 +03:00
{
//
}
/**
* Determine whether the user can delete the model.
*/
2024-05-02 09:13:05 +03:00
public function delete(User $user, Label $label): bool
2024-04-27 15:06:00 +03:00
{
//
}
/**
* Determine whether the user can restore the model.
*/
2024-05-02 09:13:05 +03:00
public function restore(User $user, Label $label): bool
2024-04-27 15:06:00 +03:00
{
//
}
/**
* Determine whether the user can permanently delete the model.
*/
2024-05-02 09:13:05 +03:00
public function forceDelete(User $user, Label $label): bool
2024-04-27 15:06:00 +03:00
{
//
}
}