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/HasName.php

<?php

namespace Filament\Actions\Concerns;

use Exception;

trait HasName
{
    protected ?string $name = null;

    public function name(?string $name): static
    {
        $this->name = $name;

        return $this;
    }

    public function getName(): ?string
    {
        if (blank($this->name)) {
            $actionClass = static::class;

            throw new Exception("Action of class [$actionClass] must have a unique name, passed to the [make()] method.");
        }

        return $this->name;
    }
}

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