<?php
namespace App\Policies;use App\Models\LedgerEntry;use App\Models\User;
class LedgerEntryPolicy {public function before(User $u,string $ability):?bool{return $u->hasRole('admin')?true:null;}public function view(User $u,LedgerEntry $e):bool{return $u->merchant_id===$e->merchant_id;}}
