for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Database\Factories;
use App\Models\Configuration;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class ConfigurationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Configuration::class;
* Define the model's default state.
* @return array
public function definition()
return [
'key' => Str::random(8),
'value' => $this->faker->word,
'description' => $this->faker->realText(),
];
}