imTigger / laravel-settings-ui by imtigger

Laravel Settings UI
17,664
2
3
Package Data
Maintainer Username: imtigger
Maintainer Contact: tiger@tiger-workshop.com (Tiger Fok)
Package Create Date: 2017-03-17
Package Last Update: 2019-12-22
Language: PHP
License: mit
Last Refreshed: 2024-04-27 03:12:20
Package Statistics
Total Downloads: 17,664
Monthly Downloads: 167
Daily Downloads: 1
Total Stars: 2
Total Watchers: 3
Total Forks: 2
Total Open Issues: 3

Laravel Settings UI

Simple UI for anlutro/laravel-settings

Requirements

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

Laravel Form Builder Documentations

Laravel Settings Documentations