PHPackages                             juniyasyos/filament-settings-hub-kaido - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. juniyasyos/filament-settings-hub-kaido

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

juniyasyos/filament-settings-hub-kaido
======================================

Manage your Filament app settings with GUI and helpers

v5.0.0(6mo ago)07851MITPHPPHP ^8.2|^8.3|^8.4

Since Feb 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/juniyasyos/juniyasyos-filament-settings-hub)[ Packagist](https://packagist.org/packages/juniyasyos/filament-settings-hub-kaido)[ RSS](/packages/juniyasyos-filament-settings-hub-kaido/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (23)Used By (1)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/3x1io-tomato-settings-hub.jpg)](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/3x1io-tomato-settings-hub.jpg)

Filament Settings Hub
=====================

[](#filament-settings-hub)

[![Latest Stable Version](https://camo.githubusercontent.com/8eab2108a350a075e01b963c586ed9593de2bffc1ab5a761a6066412db3e1255/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d73657474696e67732d6875622f76657273696f6e2e737667)](https://packagist.org/packages/tomatophp/filament-settings-hub)[![License](https://camo.githubusercontent.com/9accfcacc6564a6c74e42f5ca8abee155f61fb2fe52c4721d19be050716c482a/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d73657474696e67732d6875622f6c6963656e73652e737667)](https://packagist.org/packages/tomatophp/filament-settings-hub)[![Downloads](https://camo.githubusercontent.com/6c74a7e1f548c35c164b9c44772f00114da7880a8f64b9027f0e40b6da36f133/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d73657474696e67732d6875622f642f746f74616c2e737667)](https://packagist.org/packages/tomatophp/filament-settings-hub)

Manage your Filament app settings with GUI and helpers

Screenshots
-----------

[](#screenshots)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/settings-hub.png)](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/settings-hub.png)[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/setting-page.png)](https://raw.githubusercontent.com/tomatophp/filament-settings-hub/master/arts/setting-page.png)

Installation
------------

[](#installation)

```
composer require tomatophp/filament-settings-hub
```

now you need to publish and migrate settings table

```
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
```

after publish and migrate settings table please run this command

```
php artisan filament-settings-hub:install
```

finally reigster the plugin on `/app/Providers/Filament/AdminPanelProvider.php`

```
->plugin(
    \Juniyasyos\FilamentSettingsHub\FilamentSettingsHubPlugin::make()
        ->allowLocationSettings()
        ->allowSiteSettings()
        ->allowSocialMenuSettings()
)
```

Usage
-----

[](#usage)

you can use this package by use this helper function

```
settings($key);
```

to register new setting to the hub page you can use Facade class on your provider like this

```
use Juniyasyos\FilamentSettingsHub\Facades\FilamentSettingsHub;
use Juniyasyos\FilamentSettingsHub\Services\Contracts\SettingHold;

FilamentSettingsHub::register([
    SettingHold::make()
        ->order(2)
        ->label('Site Settings') // to translate label just use direct translation path like `messages.text.name`
        ->icon('heroicon-o-globe-alt')
        ->route('filament.admin.pages.site-settings') // use page / route
        ->page(\Juniyasyos\FilamentSettingsHub\Pages\SiteSettings::class) // use page / route
        ->description('Name, Logo, Site Profile') // to translate label just use direct translation path like `messages.text.name`
        ->group('General') // to translate label just use direct translation path like `messages.text.name`,
]);
```

and now you can see your settings on the setting hub page.

we have a ready to use helper for currency settings

```
dollar($amount)
```

it will return the money amount with the currency symbol

Allow Shield
------------

[](#allow-shield)

to allow [filament-shield](https://github.com/bezhanSalleh/filament-shield) for the settings please install it and config it first then you can use this method

```
->plugin(
    \Juniyasyos\FilamentSettingsHub\FilamentSettingsHubPlugin::make()
        ->allowShield()
)
```

to make a secure setting page just use this trait

```
use Juniyasyos\FilamentSettingsHub\Traits\UseShield;
```

Publish Assets
--------------

[](#publish-assets)

you can publish config file by use this command

```
php artisan vendor:publish --tag="filament-settings-hub-config"
```

you can publish views file by use this command

```
php artisan vendor:publish --tag="filament-settings-hub-views"
```

you can publish languages file by use this command

```
php artisan vendor:publish --tag="filament-settings-hub-lang"
```

you can publish migrations file by use this command

```
php artisan vendor:publish --tag="filament-settings-hub-migrations"
```

Filament Spatie Laravel Backup
==============================

[](#filament-spatie-laravel-backup)

[![PHP Version Require](https://camo.githubusercontent.com/90e5711da635d4c177767482fb734b386aec73e5ce9f2d00ca6fe73979a6364c/68747470733a2f2f706f7365722e707567782e6f72672f6a756e69796173796f732f66696c616d656e742d6261636b75702f726571756972652f706870)](https://packagist.org/packages/juniyasyos/filament-backup)[![Latest Stable Version](https://camo.githubusercontent.com/803c957f8bdfe6e8ecfc6abb251aaee40d46f0a4e2c1028254a3dd3fae05efa6/68747470733a2f2f706f7365722e707567782e6f72672f6a756e69796173796f732f66696c616d656e742d6261636b75702f76)](https://packagist.org/packages/juniyasyos/filament-backup)[![Total Downloads](https://camo.githubusercontent.com/d380e30dbf51c96fa2d5a14e733566f7cf69e9806fed69e1e52936e3f387a295/68747470733a2f2f706f7365722e707567782e6f72672f6a756e69796173796f732f66696c616d656e742d6261636b75702f646f776e6c6f616473)](https://packagist.org/packages/juniyasyos/filament-backup)[![License](https://camo.githubusercontent.com/ed684b30ab9b5c7285c9de36426c5a1c5f6b8b3b6e0f033aaad539486ce17c37/68747470733a2f2f706f7365722e707567782e6f72672f6a756e69796173796f732f66696c616d656e742d6261636b75702f6c6963656e7365)](https://packagist.org/packages/juniyasyos/filament-backup)

This package provides a Filament page that you can create backup of your application. You'll find installation instructions and full documentation on [spatie/laravel-backup](https://spatie.be/docs/laravel-backup/v7/introduction).

[![Screenshot 2023-08-05 at 2 42 10 PM](https://github.com/juniyasyos/filament-backup/assets/21066418/68fe1c0b-a130-41ce-8c7f-e5182d743225)](https://github.com/juniyasyos/filament-backup/assets/21066418/68fe1c0b-a130-41ce-8c7f-e5182d743225)

Installation
------------

[](#installation-1)

You can install the package via composer:

```
composer require Juniyasyos/filament-backup
```

Publish the package's assets:

```
php artisan filament:assets
```

You can publish the lang file with: `

```
php artisan vendor:publish --tag="filament-spatie-backup-translations"
```

Usage
-----

[](#usage-1)

You first need to register the plugin with Filament. This can be done inside of your `PanelProvider`, e.g. `AdminPanelProvider`.

```
