Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

BankAccountFactory.php 747B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Database\Factories\Banking;
  3. use App\Enums\Banking\BankAccountType;
  4. use App\Models\Banking\BankAccount;
  5. use Illuminate\Database\Eloquent\Factories\Factory;
  6. /**
  7. * @extends Factory<BankAccount>
  8. */
  9. class BankAccountFactory extends Factory
  10. {
  11. /**
  12. * The name of the factory's corresponding model.
  13. */
  14. protected $model = BankAccount::class;
  15. /**
  16. * Define the model's default state.
  17. *
  18. * @return array<string, mixed>
  19. */
  20. public function definition(): array
  21. {
  22. return [
  23. 'company_id' => 1,
  24. 'type' => BankAccountType::Depository,
  25. 'number' => $this->faker->unique()->numerify(str_repeat('#', 12)),
  26. 'enabled' => false,
  27. ];
  28. }
  29. }