定制 tomatophp/filament-wave 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomatophp/filament-wave

最新稳定版本:1.0.1

Composer 安装命令:

composer require tomatophp/filament-wave

包简介

Wave Kit with custom builder for TomatoPHP Plugins

README 文档

README

Screenshot

Filament Wave

Latest Stable Version License Downloads

Wave Kit with custom builder for TomatoPHP Plugins

Screenshots

Wave Kit Light Wave Kit Dark

Installation

Caution

Use it on a fresh Laravel 12 project and if you have a database take a backup before use this package.

composer require tomatophp/filament-wave

after install you need to add HasRoles to your User.php model and add isAdmin() fn like this

use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    /** @use HasFactory<\Database\Factories\UserFactory> */
    use HasFactory, Notifiable;
    use HasRoles;

    public function isAdmin(): bool
    {
        return true;
    }
}

and on your routes/web.php add this line and remove all other routes

\Wave\Facades\Wave::routes();

and on your config/auth.php we need to add accounts guard like this

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],
    'accounts' => [
        'driver' => 'session',
        'provider' => 'accounts',
    ],
],

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => env('AUTH_MODEL', App\Models\User::class),
    ],
    'accounts' => [
        'driver' => 'eloquent',
        'model' => App\Models\Account::class,
    ],
]

then you can run this command

php artisan config:cache
php artisan notifications:table
php artisan filament:install --panels
php artisan filament-wave:install
npm i
npm run build
php artisan optimize

if you are not using this package as a plugin please register the plugin on /app/Providers/Filament/AdminPanelProvider.php

->plugin(\Wave\FilamentWavePlugin::make())

now you need to optimize the views

php artisan optimize

Testing

if you like to run PEST testing just use this command

composer test

Code Style

if you like to fix the code style just use this command

composer format

PHPStan

if you like to check the code by PHPStan just use this command

composer analyse

Other Filament Packages

Checkout our Awesome TomatoPHP

统计信息

  • 总下载量: 43
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-31