misaf / vendra-product
The product module for the Vendra framework.
Installs: 0
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:vendra-module
pkg:composer/misaf/vendra-product
Requires
- php: ^8.2
- awcodes/filament-badgeable-column: ^3.0
- cknow/laravel-money: ^8.4
- filament/filament: ^4.7.0
- filament/spatie-laravel-media-library-plugin: ^4.7.0
- illuminate/support: ^11.0|^12.0
- lara-zeus/spatie-translatable: ^1.0
- misaf/vendra-activity-log: dev-master
- misaf/vendra-currency: dev-master
- misaf/vendra-tenant: ^12.0
- misaf/vendra-user: ^12.0
- mokhosh/filament-jalali: ^5.1
- spatie/eloquent-sortable: ^4.5.0
- spatie/laravel-package-tools: ^1.92
- spatie/laravel-sluggable: ^3.7.5
- staudenmeir/laravel-adjacency-list: ^1.25
Requires (Dev)
- fakerphp/faker: ^1.24.1
- larastan/larastan: ^3.9.2
- laravel/boost: ^2.0.6
- laravel/pint: ^1.27
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.8.3
- orchestra/testbench: ^10.9
- pestphp/pest: ^4.3.2
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-profanity: ^4.2.1
- pestphp/pest-plugin-type-coverage: ^4.0.3
This package is auto-updated.
Last update: 2026-02-19 07:50:04 UTC
README
Tenant-aware product management for Laravel + Filament.
Features
- Product categories
- Products
- Product prices per currency
- Filament resources on the
adminpanel
Requirements
- PHP 8.2+
- Laravel 11 or 12
- Filament 4
misaf/vendra-tenantmisaf/vendra-usermisaf/vendra-currencymisaf/vendra-activity-log
Installation
composer require misaf/vendra-product php artisan vendor:publish --tag=vendra-product-migrations php artisan migrate
Optional translations publish:
php artisan vendor:publish --tag=vendra-product-translations
The service provider and Filament plugin are auto-registered.
Usage
Create a category:
use Misaf\VendraProduct\Models\ProductCategory; $category = ProductCategory::query()->create([ 'name' => ['en' => 'Beverages'], 'description' => ['en' => 'Cold and hot drinks'], 'slug' => ['en' => 'beverages'], 'status' => true, ]);
Create a product:
use Misaf\VendraProduct\Models\Product; $product = Product::query()->create([ 'product_category_id' => $category->id, 'name' => ['en' => 'Orange Juice'], 'description' => ['en' => 'Fresh and natural'], 'slug' => ['en' => 'orange-juice'], 'quantity' => 20, 'stock_threshold' => 5, 'in_stock' => true, 'available_soon' => false, ]);
Add a price:
use Misaf\VendraProduct\Models\ProductPrice; ProductPrice::query()->create([ 'product_id' => $product->id, 'currency_code' => 'USD', 'price' => 9900, ]);
Load products with relationships:
$products = Product::query() ->with(['productCategory', 'latestProductPrice']) ->get();
Filament
Resources are available in the Products cluster on the admin panel:
- Product Categories
- Products
- Product Prices
Testing
composer test
License
MIT. See LICENSE.