Create really fast and easily general settings for your Laravel Filament project.
Create really fast and easily general settings for your Laravel Filament project.
Create really fast and easily general settings for your Laravel Filament project.
| Package Version | Filament Version |
|---|---|
| 1.x | 3.x |
| 2.x | 4.x |
| 3.x | 5.x |
You can install the package via composer:
composer require joaopaulolndev/filament-general-settings:^3.0Filament V4 - if you are using Filament v4.x, you can use this section Filament V3 - if you are using Filament v3.x, you can use this section
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-general-settings-migrations"
php artisan migrateYou can publish the config file with:
php artisan vendor:publish --tag="filament-general-settings-config"Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-general-settings-views"Optionally, you can publish the translations using
php artisan vendor:publish --tag="filament-general-settings-translations"Optionally, you can publish the assets using. Ex: to show images in default email providers.
php artisan vendor:publish --tag="filament-general-settings-assets"This is the contents of the published config file:
return [
'show_application_tab' => true,
'show_analytics_tab' => true,
'show_seo_tab' => true,
'show_email_tab' => true,
'show_social_networks_tab' => true,
'expiration_cache_config_time' => 60,
];Optionally, if you would like to add custom tabs and custom fields follow the example on configuration using the keys show_custom_tabs and custom_tabs.
…To enable the feature for choosing a logo and favicon within the application tab, you need the following steps:
site_logo and site_favicon fields to the general settings table (only if you have installed the package before this feature):php artisan vendor:publish --tag="filament-general-settings-migrations"
php artisan migratephp artisan vendor:publish --tag="filament-general-settings-config"return [
// Other configuration settings...
'show_logo_and_favicon' => true,
];Add in AdminPanelProvider.php
use Joaopaulolndev\FilamentGeneralSettings\FilamentGeneralSettingsPlugin;
...
->plugins([
FilamentGeneralSettingsPlugin::make()
])if you want to show for specific parameters to sort, icon, title, navigation group, navigation label and can access, you can use the following example:
->plugins([
FilamentGeneralSettingsPlugin::make()
->canAccess(fn() => auth()->user()->id === 1)
->setSort(3)
->setIcon('heroicon-o-cog')
->setNavigationGroup('Settings')
->setTitle('General Settings')
->setNavigationLabel('General Settings'),
])composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
No open issues yet, or sync has not completed.