This commit is contained in:
32
api/database/factories/TransportePaciente/ViagemFactory.php
Normal file
32
api/database/factories/TransportePaciente/ViagemFactory.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories\TransportePaciente;
|
||||
|
||||
use App\Models\TransportePaciente\Viagem;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ViagemFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Viagem::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'condutor_id' => 1,
|
||||
'veiculo_id' => 1,
|
||||
'data' => $this->faker->dateTimeBetween('-10 year'),
|
||||
'status_id' => 2,
|
||||
'destino_id' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user