for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Policies;
use App\Models\User;
use App\Traits\AllowTrait;
use Illuminate\Auth\Access\HandlesAuthorization;
class EquipmentCategoryPolicy
{
use AllowTrait;
use HandlesAuthorization;
/**
* Determine whether the user can create models
*/
public function create(User $user)
return $this->checkPermission($user, 'Manage Equipment');
}
* Determine whether the user can update the model
public function update(User $user)
* Determine whether the user can delete the model
public function delete(User $user)