wsmallnews / support
Wsmallnews system support modules
Fund package maintenance!
Wsmallnews
Installs: 3
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/wsmallnews/support
Requires
- php: ^8.2
- bezhansalleh/filament-plugin-essentials: ^1.0
- filament/filament: ^4.0
- filament/spatie-laravel-media-library-plugin: ^4.0
- filament/spatie-laravel-tags-plugin: ^4.0
- intervention/image-laravel: ^1.0
- overtrue/easy-sms: ^3.0
- postare/blade-mdi: ^1.1
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2026-01-11 00:26:53 UTC
README
后续文档一些记录
-
media-library 需要更改 observer 为 Wsmallnews\Support\Tenant\MediaLibrary\Observers\MediaObserver,否则删除 media 时,会删除文件系统中的文件,导致其他租户的文件也被删除。
-
laravel-settings
- boot 方法中注册事件监听器,可以在数据库中初始化 settings 配置
- 多租户时,settings.php 中添加 team_database 配置项,指定 team_settings 表
'team_database' => [ 'type' => Wsmallnews\Support\Tenant\Settings\Repositories\DatabaseSettingsRepository::class, 'model' => null, 'table' => 'sn_team_settings', 'connection' => null, ],
tags 标签表增加三个字段, 支持多租户 team_id scope_type scope_id
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require wsmallnews/support
You can publish the config file with:
php artisan vendor:publish --tag="support-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="support-views"
This is the contents of the published config file:
return [
];
Usage
$support = new Wsmallnews\Support(); echo $support->echoPhrase('Hello, Wsmallnews!');
Testing
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
License
The MIT License (MIT). Please see License File for more information.