HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/public_html/printmanager/vendor/filament/support/src/Concerns/CanBeLazy.php
<?php

namespace Filament\Support\Concerns;

use Illuminate\Contracts\View\View;

trait CanBeLazy
{
    protected static bool $isLazy = true;

    protected ?string $placeholderHeight = null;

    public static function isLazy(): bool
    {
        return static::$isLazy;
    }

    public function placeholder(): View
    {
        return view(
            'filament::components.loading-section',
            [
                'height' => $this->getPlaceholderHeight(),
                ...$this->getPlaceholderData(),
            ],
        );
    }

    /**
     * @return array<string, mixed>
     */
    public function getPlaceholderData(): array
    {
        return [
            //
        ];
    }

    public function getPlaceholderHeight(): ?string
    {
        return $this->placeholderHeight;
    }
}