File manager - Edit - /var/www/html/gop/api/database/factories/FornecimentoFactory.php
Back
<?php namespace Database\Factories; use App\Models\Empenho; use App\Models\Empresa; use App\Models\Endereco; use App\Models\Obra; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Fornecimento> */ class FornecimentoFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ public function definition() { $empresa = Empresa::factory()->create(); $obra = Obra::factory()->create(); $endereco = Endereco::factory()->create(); $empenho = Empenho::factory()->create(); return [ 'empresa_id' => $empresa->id, 'obra_id' => $obra->id, 'empenho_id' => $empenho->id, 'material' => $this->faker->word, 'processo' => $this->faker->word, 'ordem_servico' => (string) $this->faker->unique()->numberBetween(1000, 9999), 'prazo_entrega' => $this->faker->date(), 'endereco_id' => $endereco->id, 'horario_entrega' => $this->faker->time('H:i'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.16 |
proxy
|
phpinfo
|
Settings