Created
December 8, 2021 21:08
-
-
Save rachids/c0d4a1d8b3aaf2ac3d61305838ee4426 to your computer and use it in GitHub Desktop.
Bunny Factory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Database\Factories; | |
use Illuminate\Database\Eloquent\Factories\Factory; | |
class BunnyFactory extends Factory | |
{ | |
/** | |
* Define the model's default state. | |
* | |
* @return array | |
*/ | |
public function definition(): array | |
{ | |
return [ | |
'name' => $this->faker->userName, | |
'fluffiness' => $this->faker->numberBetween(1, 100), | |
'birth_date' => $this->faker->date(), | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment