There is no license information available for the latest version (v2.1.1) of this package.

Admin Architect - Settings Module. Package provide easy way to load and store options from/in database

v2.1.1 2019-02-20 07:39 UTC

This package is auto-updated.

Last update: 2020-03-08 07:38:25 UTC


adminarchitect/options provides the way to store/read key => value options to/from database.


Note: this is not standalone package, it can be used only in conjunction with Admin Architect ( package.

Install adminarchitect/options module by running:

composer require adminarchitect/options

register Options service provider by adding it to the app/config.php providers section:

'providers' => [

Note! Terranet\Options\ServiceProvider::class should be registered BEFORE Terranet\Administrator\ServiceProvider::class.

now you can publish the whole package resources by running:

php artisan vendor:publish [--provider="Terranet\\Options\\ServiceProvider"]


To create new Settings module, run:

php artisan administrator:resource:settings

Settings module will be created into the app\Http\Terranet\Administrator\Modules directory.


Routes become available at app\Http\Terranet\Options\routes.php.


Create migration for the options table:

php artisan options:table

this will create the migration file inside of database/migrations directory...

Run migration:

php artisan migrate

Optionaly you can create new options for your business:

php artisan options:make <Name> <Value>


Options module supports all know types by Admin Architect: select, boolean, text, textarea, etc... So for example the boolean key may look like:

public function form()
    return array_merge(
            'ssl' => ['type' => 'boolean', 'label' => 'Use SSL'],