mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 02:12:54 -05:00
refactor factories
This commit is contained in:
13
database/factories/CompanyFactory.php
Normal file
13
database/factories/CompanyFactory.php
Normal 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
|
||||
];
|
||||
});
|
||||
Reference in New Issue
Block a user