Manage all dynamic application settings in one place
// install
composer require haruncpi/laravel-option-framework
//vendor publish
php artisan vendor:publish --provider="Haruncpi\LaravelOptionFramework\ServiceProvider"
// Add options.php into config direcotry
// here is demo options.php
// more field type and doc in GitHub: https://github.com/haruncpi/laravel-option-framework
return array(
array(
"id" => "general",
"label" => "General",
"icon" => "fa-cubes",
"fields" => array(
array(
"type" => "text",
"id" => "site_name",
"label" => "Site Name",
"description" => "Enter your site name",
"icon" => "fa-globe",
"validation" => 'required|min:10'
),
array(
"type" => "text",
"id" => "fb_link",
"label" => "Facebook",
"description" => "facebook URL",
"icon" => "fa-facebook"
)
)
)
// add route
Route::optionRoute()
// browser example.com/admin/options