amzad78692/filament-app-settings
Composer 安装命令:
composer require amzad78692/filament-app-settings
包简介
README 文档
README
This package adds a way to interact with outerweb/settings in Filament.
Installation
You can install the package via composer:
composer require amzad78692/filament-app-settings
You can install the package via composer:
php artisan settings:install
Usage
Create a settings page at 'app/Filament/Pages/Settings.php':
<?php namespace App\Filament\Pages; use Amzad78692\FilamentAppSettings\Pages\SettingsPage; use Filament\Forms\Components\FileUpload; use Filament\Forms\Components\TextInput; use Filament\Schemas\Components\Tabs; use Filament\Schemas\Components\Tabs\Tab; use Illuminate\Contracts\Support\Htmlable; class Settings extends SettingsPage { public function schema(): array { return [ Tabs::make('Settings') ->schema([ Tab::make('General') ->schema([ TextInput::make('general.website_name.en') ->label(__('Website name') . '(en)'), TextInput::make('general.website_name.ar') ->label(__('Website name') . '(ar)'), FileUpload::make('general.logo') ->image() ->directory('settings'), FileUpload::make('general.favicon') ->image() ->directory('settings'), ])->columns(2), Tab::make('Contact') ->schema([ TextInput::make('contact.email') ->email(), TextInput::make('contact.mobile') ->tel() ->telRegex('/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\.\/0-9]*$/'), TextInput::make('contact.whatsapp') ->tel() ->telRegex('/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\.\/0-9]*$/'), TextInput::make('contact.address'), ])->columns(2), ]), ]; } }
Changing the navigation label
You can change the navigation label by overriding the getNavigationLabel method:
namespace App\Filament\Pages; use Amzad78692\FilamentAppSettings\Pages\SettingsPage; class Settings extends SettingsPage { public static function getNavigationLabel(): string { return 'Custom label'; } }
Changing the page title
You can change the page title by overriding the getTitle method:
namespace App\Filament\Pages; use Amzad78692\FilamentAppSettings\Pages\SettingsPage; class Settings extends SettingsPage { public function getTitle(): string { return 'Custom title'; } }
Credits
amzad78692/filament-app-settings 适用场景与选型建议
amzad78692/filament-app-settings 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 46 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 09 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 amzad78692/filament-app-settings 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 amzad78692/filament-app-settings 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-07