wire-elements / spotlight

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

Error when using Wire Elements Pro Spotlight demo #97

Closed Restingo closed 2 years ago

Restingo commented 2 years 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 2 years ago

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

PhiloNL commented 2 years 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.