Deze package gaat alle logica houden voor producten. Producten zullen in het algemeen gebruikt worden in combinatie met de Cart of Ecommerce package.
composer require marshmallow/products
Voeg de observer toe aan AppServiceProvider.php
.
public function boot()
{
ModelObserver::observe();
}
php artisan db:seed --class=Marshmallow\\Priceable\\Database\\Seeds\\VatRatesSeeder
php artisan marshmallow:resource Product Product
php artisan marshmallow:resource Supplier Product
php artisan marshmallow:resource ProductCategory Product
php artisan marshmallow:resource Price Priceable
php artisan marshmallow:resource VatRate Priceable
php artisan marshmallow:resource Currency Priceable
CURRENCY=eur
factory(Marshmallow\Product\Models\Product::class, 10)->create();
Als de factory niet werkt, zet dan 'strict' => false,
in config/database.php
.
...