PHP code example of adminarchitect / options

1. Go to this page and download the library: Download adminarchitect/options library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adminarchitect / options example snippets


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

php artisan administrator:resource:settings

php artisan options:table

php artisan migrate

php artisan options:make <Name> <Value>

public function form()
{
    return array_merge(
        $this->scaffoldForm(),
        [
            'ssl' => ['type' => 'boolean', 'label' => 'Use SSL'],
        ]
    );
}