POS System for FilamentPHP with a lot of features and integration with Ecommerce Builder
composer require tomatophp/filament-pos
we need the Media Library plugin to be installed and migrated you can use this command to publish the migration
php artisan vendor:publish --provider="SpatieMediaLibraryMediaLibraryServiceProvider" --tag="medialibrary-migrations"
now you need to install the settings hub use these commands
php artisan vendor:publish --provider="SpatieLaravelSettingsLaravelSettingsServiceProvider" --tag="migrations"php artisan filament-settings-hub:install
after install your package please run this command
php artisan filament-pos:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(TomatoPHPFilamentPosFilamentPOSPlugin::make())
you can use the shield to protect your resource and allow user roles by install it first
composer require bezhansalleh/filament-shield
Add the SpatiePermissionTraitsHasRoles trait to your User model(s):
use IlluminateFoundationAuthUser as Authenticatable;use SpatiePermissionTraitsHasRoles;class User extends Authenticatable{use HasRoles;// ...}
Publish the config file then setup your configuration:
->plugin(BezhanSallehFilamentShieldFilamentShieldPlugin::make())
Now run the following command to install shield:
php artisan shield:install
Now we can publish the package assets.
php artisan vendor:publish --tag="filament-users-config"
now you need to allow it on the plugin options
->plugin(TomatoPHPFilamentPosFilamentPOSPlugin::make()->allowShield())
for more information check the Filament Shield
you can publish config file by use this command
php artisan vendor:publish --tag="filament-pos-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-pos-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-pos-lang"
Checkout our Awesome TomatoPHP