InventoryAccountFactory.php 508 B

123456789101112131415161718192021
  1. <?php
  2. /** @var Factory $factory */
  3. use App\InventoryAccount;
  4. use App\Owner;
  5. use App\UserOwnerGroup;
  6. use Faker\Generator as Faker;
  7. use Illuminate\Database\Eloquent\Factory;
  8. use Illuminate\Support\Str;
  9. $factory->define(InventoryAccount::class, function (Faker $faker) {
  10. return [
  11. 'owner_id'=> factory(owner::class),
  12. 'type'=>'全盘',
  13. 'processed'=>mt_rand(0,100),
  14. 'difference'=>mt_rand(0,100),
  15. 'returned'=>mt_rand(0,100),
  16. 'total'=>mt_rand(0,10),
  17. ];
  18. });