updated module compatibility

This commit is contained in:
Denis Duliçi
2020-10-17 14:53:24 +03:00
parent 86de28d87d
commit 77e4109b03
5 changed files with 93 additions and 59 deletions

View File

@@ -1,9 +1,28 @@
<?php
use Faker\Generator as Faker;
namespace $NAMESPACE$;
$factory->define(Model::class, function (Faker $faker) {
return [
//
];
});
use Illuminate\Database\Eloquent\Factories\Factory;
use Faker\Generator as Faker;
class $NAME$ extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = \$MODEL_NAMESPACE$\$NAME$::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
//
];
}
}