marshmallow / nova-spotlight
A Spotlight extension for Laravel Nova
Requires
- php: ^7.1|^8.0
- livewire/livewire: ^2.4
- wire-elements/spotlight: ^1.0
This package is auto-updated.
Last update: 2024-11-06 13:37:50 UTC
README
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.