osb/database/factories/ProductFactory.php

19 lines
391 B
PHP
Raw Normal View History

<?php
use Faker\Generator as Faker;
$factory->define(App\Models\Product::class, function (Faker $faker) {
return [
'id'=>1,
];
});
$factory->state(App\Models\Product::class,'active',[
'active' => '1',
]);
$factory->state(App\Models\Product::class,'strict',[
'price_recurr_strict' => '1',
]);
$factory->state(App\Models\Product::class,'notstrict',[
'price_recurr_strict' => '0',
]);