19 lines
391 B
PHP
19 lines
391 B
PHP
<?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',
|
|
]); |