mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-11 05:59:57 -06:00
34 lines
718 B
PHP
34 lines
718 B
PHP
<?php
|
|
|
|
/* @var $factory \Illuminate\Database\Eloquent\Factory */
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Application;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ApplicationImageProofFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = \App\Models\ApplicationImageProof::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'application_id' => function () {
|
|
return Application::factory()->create()->id;
|
|
},
|
|
'image' => $this->faker->word,
|
|
];
|
|
}
|
|
}
|