You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
563 B

  1. <?php
  2. /** @var Factory $factory */
  3. use App\Models\Business;
  4. use Illuminate\Support\Str;
  5. use Faker\Generator as Faker;
  6. $factory->define(Business::class, function (Faker $faker) {
  7. return [
  8. 'name' => $name = $faker->unique()->company,
  9. 'slug' => Str::slug($name) . $faker->numberBetween(1, 100),
  10. 'wallet' => random_int(111111, 999999),
  11. 'slug' => Str::slug($name) . $faker->numberBetween(1, 100),
  12. 'color' => $faker->colorName,
  13. 'calculated_at' => \Carbon\Carbon::now()->subMinutes(random_int(1, 1000)),
  14. ];
  15. });