Viewing File: /htdocs/atito2/database/factories/QuartierFactory.php
<?php
namespace Database\Factories;
use App\Models\Quartier;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Factories\Factory;
class QuartierFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Quartier::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'nom_quartier' => $this->faker->text(255),
'commune_id' => \App\Models\Commune::factory(),
];
}
}
Back to Directory
File Manager