Sindbad~EG File Manager

Current Path : /home/webg5288/public_html/laravel_kendal/vendor/filament/actions/src/Concerns/
Upload File :
Current File : /home/webg5288/public_html/laravel_kendal/vendor/filament/actions/src/Concerns/CanClose.php

<?php

namespace Filament\Actions\Concerns;

use Closure;

trait CanClose
{
    protected bool | Closure $shouldClose = false;

    public function close(bool | Closure $condition = true): static
    {
        $this->shouldClose = $condition;

        return $this;
    }

    public function shouldClose(): bool
    {
        return (bool) $this->evaluate($this->shouldClose);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists