imtigger / laravel-settings-ui
Laravel Settings UI
Installs: 19 187
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 3
Requires
- php: >=5.6.4
- anlutro/l4-settings: ^0.4.8
- kris/laravel-form-builder: ^1.7
- laravel/framework: 5.*
This package is auto-updated.
Last update: 2024-10-08 08:19:06 UTC
README
Simple UI for anlutro/laravel-settings
Requirements
- PHP >= 5.6.4
- Laravel >= 5.3
- anlutro/laravel-settings must be properly installed
- kristijanhusak/laravel-form-builder must be properly installed
Installation
This plugin can only be installed from Composer.
Run the following command:
$ composer require imtigger/laravel-settings-ui
Add the following to your config/app.php
:
'providers' => [ ... Imtigger\LaravelSettingsUI\LaravelSettingsUIServiceProvider::class, ]
Add route to web.php
Route::get('/setting', ['as' => 'laravel-settings-ui', 'uses' => '\\Imtigger\\LaravelSettingsUI\\Controller@get']); Route::post('/setting', ['as' => 'laravel-settings-ui.post', 'uses' => '\\Imtigger\\LaravelSettingsUI\\Controller@post']);
Publish config, form and view
php artisan vendor:publish --provider="Imtigger\LaravelSettingsUI\LaravelSettingsUIServiceProvider"
Usage
Edit app/Forms/LaravelSettingsForm.php
to add/remove fields
All fields in this Form
is automagically saved
Edit resources\views\vendor\laravel-settings-ui\settings.blade.php
to adapt it to your favorite theme!
Final word: Remember use middleware to protect routes