Download the PHP package devloops/nova-system-settings without Composer
On this page you can find all versions of the php package devloops/nova-system-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devloops/nova-system-settings
More information about devloops/nova-system-settings
Files in devloops/nova-system-settings
Package nova-system-settings
Short Description A Laravel Nova tool which provides the ability to define your system settings in a beautiful UI and code implementation.
License MIT
Informations about the package nova-system-settings
The Missing Laravel Nova System Settings Tool.
This packages saves the times for you when creating the system settings part of your project, it handles the UI in a very intuitive convenient way. It has a straightforward, Nova-Like implementation, and it was built over Spatie's laravel-settings package.
- A look at Spatie's package docs is needed to keep track of how things are going.
Installation
Implementation
The usage of this package is very simple as creating a class that extends Devloops\NovaSystemSettings\Contracts\SystemSettings
abstract class, which itself
extends the Spatie\LaravelSettings\Settings
class of Spatie's laravel-settings packages, then register the tool inside the NovaServiceProvider
giving it an array of the settings you defined for your system.
Below is a full of example
1- Create your settings class as follows.
The above classes implements five methods that are abstractly inherited from the SystemSettings
class, the methods are:
The comments on the methods tells each methods goal.
2- Register all your settings via the tool()
method in the App\Providers\NovaServiceProvider
like the example below.
4- The system settings groups title are translatable, you need to create a locale file resources/lang/en/system-settings.php
5- System settings internal usage is pretty simple, as Spatie's laravel-settings package behaves, you can simply use dependency injection to inject the settings class in either your services, controllers, repositories or any other place in your system.
Screenshots
Credits
License
The MIT License (MIT). Please see License File for more information.