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

filament-ecommerce

> 编程语言
开源

使用 Filament 和 Splade 构建您自己的电子商务商店

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 Filament 和 Splade 构建您自己的电子商务商店

Filament Ecommerce Builder

Build your own ecommerce store with FilamentPHP with the Power of Tomato CMS Builder

Compatibility

Package Filament Laravel PHP
5.x 5.x 12.x / 13.x 8.3+
1.x 3.x 10.x / 11.x 8.1+

The Filament v3 line is kept on the v3 branch.

Installation

bash
composer require tomatophp/filament-ecommerce

we need the Media Library plugin to be installed and migrated you can use this command to publish the migration

bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"

now you need to install the settings hub use these commands

bash
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan filament-settings-hub:install

the package uses Filament Accounts, Filament Types, Filament CMS and Filament Locations; their migrations run with the install command below.

Filament Locations v5 reads countries, cities and areas from JSON by default, so the country_id, city_id and area_id columns only get foreign keys when those tables exist (FILAMENT_LOCATIONS_DRIVER=database).

after installing your package please run this command

bash
php artisan filament-ecommerce:install

finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php

php
->plugin(
    \TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make()
        ->useCoupon()
        ->useGiftCard()
        ->useReferralCode()
        ->allowOrderExport()
        ->allowOrderImport()
        ->useWidgets()
)

there is some feature you can disable it

php
->plugin(
    \TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make()
        ->useAccounts(false)
        ->useOrderSettings(false)
        ->useSettings(false)
        ->showOrderAccount(false)
        ->allowOrderCreate(false)
)

Features

  • Multi Company / Branches Management
  • Product Management
  • Product Table Group By Type
  • Product Multi Variants
  • Product Multi Images
  • Product Multi Languages Content
  • Shipping Vendor Management
  • Order Management
  • Order Logs
  • Order Shipping Action
  • Order Change Status Action
  • Order Table Group By Status
  • Order Receipt Print
  • Order Table Summary
  • Order Settings
  • Order Export
  • Order Import
  • Order Charts Widgets
  • Coupon Management
  • Gift Card Management
  • Refferal Management
  • Coupons Service Class
  • Add Discount To Order Using Coupon
  • Product Variants On Order
  • Gitf Card Services
  • Gift Card Apply To Account Wallet
  • Pay Order With Wallet
  • Pay Order With Gift Card
  • Refferal Code Services
  • Refferal Code Middleware Counter
  • Order PDF Export
  • Order Facade Methods
  • Order Tracking Page
  • Product Import
  • Product Export
  • Product Clone
  • Cart Manager
  • Comparison Between Products
  • Wishlist Manager
  • Product Download for Digital Products
  • Search History Manager
  • Filament CMS Page Builder Integration
  • Filament CMS Themes Integration
  • Product Service Class
  • Ecommerce Service Class
  • Ecommerce APIs

Screenshots

Use Coupon Service

you can use coupon service to check if coupon is valid or not

you can use this method to check for selected Order

php
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce;

FilamentEcommerce::coupon()->check('coupon_code', \TomatoPHP\FilamentEcommerce\Models\Order::find(1));

or you can check the code for selected products

php
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce;

FilamentEcommerce::coupon()->products([1,2,4])->check('coupon_code');

or you can get the direct discount amount of the code

php
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce;

FilamentEcommerce::coupon()->products([1,2,4])->discount('coupon_code');

and it's the same as check you can apply to selected order or selected products.

Use Filament Shield

you can use the shield to protect your resource and allow user roles by install it first

bash
composer require bezhansalleh/filament-shield

Add the Spatie\Permission\Traits\HasRoles trait to your User model(s):

php
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use HasRoles;

    // ...
}

Publish the config file then setup your configuration:

php
->plugin(\BezhanSalleh\FilamentShield\FilamentShieldPlugin::make())

Now run the following command to install shield:

bash
php artisan shield:install

Now we can publish the package assets.

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

now you need to allow it on the plugin options

php
->plugin(\TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make()->allowShield())

for more information check the Filament Shield

Publish Assets

you can publish config file by use this command

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

you can publish views file by use this command

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

you can publish languages file by use this command

bash
php artisan vendor:publish --tag="filament-ecommerce-lang"

you can publish migrations file by use this command

bash
php artisan vendor:publish --tag="filament-ecommerce-migrations"

Other Filament Packages

Checkout our Awesome TomatoPHP

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

PHPdeliveryecommerceecommerce-applicationfilament-plugin

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

> 工具信息

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

> 相关工具

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