PHP code example of tomatophp / filament-settings-hub

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

    

tomatophp / filament-settings-hub example snippets


->plugin(\TomatoPHP\FilamentSettingsHub\FilamentSettingsHubPlugin::make())

settings($key);

use TomatoPHP\FilamentSettingsHub\Facades\FilamentSettingsHub;
use TomatoPHP\FilamentSettingsHub\Services\Contracts\SettingHold;

FilamentSettingsHub::register([
    SettingHold::make()
        ->label(__('Site Settings'))
        ->icon('heroicon-o-globe-alt')
        ->route('filament.admin.pages.site-settings')
        ->description(__('Name, Logo, Site Profile'))
        ->group(__('General')),
]);


dollar($amount)
bash
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
bash
php artisan filament-settings-hub:install
bash
php artisan vendor:publish --tag="filament-settings-hub-config"
bash
php artisan vendor:publish --tag="filament-settings-hub-views"
bash
php artisan vendor:publish --tag="filament-settings-hub-lang"
bash
php artisan vendor:publish --tag="filament-settings-hub-migrations"