%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex_o/production/vendor/livewire/livewire/src/Features/SupportEvents/
Upload File :
Create Path :
Current File : //www/loslex_o/production/vendor/livewire/livewire/src/Features/SupportEvents/BaseOn.php

<?php

namespace Livewire\Features\SupportEvents;

use Attribute;
use Illuminate\Support\Arr;
use Livewire\Features\SupportAttributes\Attribute as LivewireAttribute;

use function Livewire\store;

#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
class BaseOn extends LivewireAttribute
{
    public function __construct(public $event) {}

    public function boot()
    {
        foreach (Arr::wrap($this->event) as $event) {
            store($this->component)->push(
                'listenersFromAttributes',
                $this->getName() ?? '$refresh',
                $event,
            );
        }
    }
}

Zerion Mini Shell 1.0