<?php
namespace App\Policies;
use App\Models\Transfer;use App\Models\User;
class TransferPolicy { public function before(User $u,string $ability):?bool{return $u->hasRole('admin')?true:null;} public function view(User $u,Transfer $t):bool{return $u->can('transfer.view.own')&&in_array($u->merchant_id,[$t->send_merchant_id,$t->receive_merchant_id],true);} public function update(User $u,Transfer $t):bool{return false;} }
