public static function canAccess(array $parameters = []): bool{ dd($this->getRecord()); //return auth()->user()->id == 42;}
Using $this when not in object context
public static function canAccess(array $parameters = []): bool { return auth()->user()->id == 42; }
public static function canAccess(): bool { return auth()->user()->id == 42; }