App\Policies\ExpensePolicy::create PHP Method

create() public static method

public static create ( User $user, $item ) : boolean
$user app\models\User
return boolean
    public static function create(User $user, $item)
    {
        if (!parent::create($user, $item)) {
            return false;
        }
        return $user->hasFeature(FEATURE_EXPENSES);
    }
ExpensePolicy