refactor factories

This commit is contained in:
radhu587
2020-06-22 17:07:35 +05:30
parent 2e5cb58c39
commit e8f046f02e
5 changed files with 39 additions and 11 deletions

View File

@ -0,0 +1,13 @@
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Crater\Company;
use Faker\Generator as Faker;
$factory->define(Company::class, function (Faker $faker) {
return [
'unique_hash' => str_random(60),
'name' => $faker->name
];
});