marshmallow/nova-spotlight

A Spotlight extension for Laravel Nova

v1.0.0 2021-11-07 17:58 UTC

README

alt text

Laravel Nova Spotlight

This package adds Spotlight to Laravel Nova. The package adds three commands; view, edit or create a new Laravel Nova resource.

View / Edit -> Resource name -> Search query New -> Resource name

It uses the base of the global Laravel Nova search, all titles and policies are defined in the resource. Note: This is a WIP.

Installation

composer require marshmallow/nova-spotlight

Enable CSS in the Config of Spotlight

'include_css' => true,

To publish use:

php artisan vendor:publish --tag=livewire-ui-spotlight-config

Vendor Publish

This command publishes a copy of the Nova Layout to the vendor folder, copied from (nova.resources.views.layout)

php artisan vendor:publish --provider="Marshmallow\NovaSpotlight\NovaSpotlightServiceProvider" --tag="views" --force

It adds these scripts

<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
@livewireScripts
@livewireStyles
@livewire('livewire-ui-spotlight')

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email stef@marshmallow.dev instead of using the issue tracker.

Credits

Spotlight is made by Philo Hermans See https://github.com/wire-elements/spotlight

License

The MIT License (MIT). Please see License File for more information.