You're not actually using the Policy (apart from the MANAGE const). The Policy would expect a Model instance to authorize against.
Maybe consider taking a primer on Policies
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
My policy always returns false.
This is my policy class
<?php
namespace App\Policies\Admin;
use App\Models\Admin\User;
use App\Models\Client\Vehicles;
use App\Models\Client\Permissions;
use Illuminate\Auth\Access\HandlesAuthorization;
use Log;
class PermissionPolicy
{
use HandlesAuthorization;
public const MANAGE = 'manage';
/**
* Determine whether the user can manage vehicles.
*
* @param \App\Models\Admin\User $users
* @return mixed
*/
public function manage(User $authenticatedUser)
{
return true;
}
}
this is how I call it
$user->can(PermissionPolicy::MANAGE)
Please or to participate in this conversation.