src/Concerns/Dispatchable.php
public function after(Closure $callback = null): void
    {
        if ($this->booted() || $this->status->is('safe')) {
            $this->app->call($callback);

            return;
        }

        $this->events->listen('orchestra.extension: booted', $callback);
    }
public function after(Closure $callback = null): void
    {
        if ($this->booted() || $this->status->is('safe')) {
            $this->app->call($callback);

            return;
        }

        $this->events->listen('orchestra.extension: booted', $callback);
    }
Create an event listener or execute it directly.

@param  \Closure|null  $callback

@return void