| Current Path : /home/webg5288/www/laravel_kendal/vendor/filament/support/src/Concerns/ |
| Current File : /home/webg5288/www/laravel_kendal/vendor/filament/support/src/Concerns/CanGrow.php |
<?php
namespace Filament\Support\Concerns;
use Closure;
trait CanGrow
{
protected bool | Closure | null $canGrow = null;
public function grow(bool | Closure | null $condition = true): static
{
$this->canGrow = $condition;
return $this;
}
public function canGrow(bool $default = true): bool
{
return (bool) ($this->evaluate($this->canGrow) ?? $default);
}
}