PHP code example of phpinnacle / settings

1. Go to this page and download the library: Download phpinnacle/settings 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/ */

    

phpinnacle / settings example snippets


use Filament\Forms\Components\TextInput;
use PHPinnacle\Settings\Definition;
use PHPinnacle\Settings\SettingsPlugin;

$panel->plugin(
    SettingsPlugin::make()->definitions(
        Definition::make(GeneralSettings::class)
            ->label('General')
            ->slug('general')
            ->icon('phosphor-gear')
            ->sort(10)
            ->schema([
                TextInput::make('site_name')->
bash
composer vendor:publish --tag="phpinnacle-settings-migrations"
php artisan migrate