tomatophp/filament-wave 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固