百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

filament-general-settings

> 编程语言
开源

为您的 Laravel Filament 项目创建非常快速且方便的通用设置。

188 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

为您的 Laravel Filament 项目创建非常快速且方便的通用设置。

Filament General Settings

Create really fast and easily general settings for your Laravel Filament project.

Features & Screenshots

  • Application: Manage your system general settings, such as title, description, and theme color.
  • Analytics: Add your Google Analytics tracking code to your system.
  • SEO Meta: Manage your SEO meta tags, such as title, description, and keywords.
  • Email: Manage your email settings, such as SMTP server, port, and credentials.
  • Social Media Network: Manage your social media network links, such as Facebook, Twitter, and Instagram.
  • Support: Laravel 11 and Filament 5.x

Compatibility

Package Version Filament Version
1.x 3.x
2.x 4.x
3.x 5.x

Installation

You can install the package via composer:

bash
composer require joaopaulolndev/filament-general-settings:^3.0

Filament 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:

bash
php artisan vendor:publish --tag="filament-general-settings-migrations"
php artisan migrate

You can publish the config file with:

bash
php artisan vendor:publish --tag="filament-general-settings-config"

Optionally, you can publish the views using

bash
php artisan vendor:publish --tag="filament-general-settings-views"

Optionally, you can publish the translations using

bash
php artisan vendor:publish --tag="filament-general-settings-translations"

Optionally, you can publish the assets using. Ex: to show images in default email providers.

bash
php artisan vendor:publish --tag="filament-general-settings-assets"

This is the contents of the published config file:

php
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.

…

Enabling Logo and Favicon Feature

To enable the feature for choosing a logo and favicon within the application tab, you need the following steps:

  1. Publish the migration file to add the site_logo and site_favicon fields to the general settings table (only if you have installed the package before this feature):
bash
php artisan vendor:publish --tag="filament-general-settings-migrations"
php artisan migrate
  1. Publish the configuration file:
bash
php artisan vendor:publish --tag="filament-general-settings-config"
  1. Open the published configuration file config/filament-general-settings.php and set the following key to true:
bash
return [
    // Other configuration settings...
    'show_logo_and_favicon' => true,
];

Usage

Add in AdminPanelProvider.php

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:

php
->plugins([
    FilamentGeneralSettingsPlugin::make()
        ->canAccess(fn() => auth()->user()->id === 1)
        ->setSort(3)
        ->setIcon('heroicon-o-cog')
        ->setNavigationGroup('Settings')
        ->setTitle('General Settings')
        ->setNavigationLabel('General Settings'),
    ])

Testing

bash
composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

  • João Paulo Leite Nascimento
  • All Contributors

License

The MIT License (MIT). Please see License File for more information.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言