wire-elements / spotlight

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.
MIT License
912 stars 71 forks source link

Error when using Wire Elements Pro Spotlight demo #97

Closed Restingo closed 1 year ago

Restingo commented 1 year ago

When using the standard spotlight demo from https://wire-elements.dev/docs/getting-started/spotlight-component#start

Spotlight::setup(function () {
    Spotlight::registerQueries(
        SpotlightQuery::asDefault(function ($query) {
            $collection = collect();

            $collection->push(
                SpotlightResult::make()
                    ->setTitle('Dashboard')
                    ->setTypeahead('Dashboard')
                    ->setGroup('pages')
                    ->setAction('jump_to', ['path' => '/'])
                    ->setIcon('home')
            );

            return $collection;
        }),
    );
});

I'm getting the following error message:

Error
Call to undefined function WireElements\Pro\Components\Spotlight\str()
...\vendor\wire-elements\pro\src\Components\Spotlight\SpotlightAction.php:24
Restingo commented 1 year ago

@PhiloNL is this the right place or do you have a support address for pro? Thx.

PhiloNL commented 1 year ago

Hi there! Please send an email to support@wire-elements.dev with your license key and I'll provide you with an discord invite.