HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/ai.naniguide.com/app/Policies/PaymentGatewayPolicy.php
<?php

namespace App\Policies;

use App\Model\User;
use App\Model\PaymentGateway;
use Illuminate\Auth\Access\HandlesAuthorization;

class PaymentGatewayPolicy
{
    use HandlesAuthorization;

    public function list(User $user)
    {
        return true;
    }

    public function read(User $user, PaymentGateway $paymentGateway)
    {
        return true;
    }

    public function create(User $user)
    {
        return true;
    }

    public function update(User $user, PaymentGateway $paymentGateway)
    {
        return true;
    }

    public function enable(User $user, PaymentGateway $paymentGateway)
    {
        return $paymentGateway->isInactive();
    }

    public function disable(User $user, PaymentGateway $paymentGateway)
    {
        return $paymentGateway->isActive();
    }

    public function delete(User $user, PaymentGateway $paymentGateway)
    {
        return true;
    }

    public function verify(User $user, PaymentGateway $paymentGateway)
    {
        return true;
    }
}