This commit is contained in:
18
api/database/seeders/geral/2024_05_03_092627_turno.php
Normal file
18
api/database/seeders/geral/2024_05_03_092627_turno.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Geral\Turno as Model;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class Turno_20240503092627 extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
$turnos = [
|
||||
['id' => 1, 'nome' => 'Manhã'],
|
||||
['id' => 2, 'nome' => 'Tarde'],
|
||||
['id' => 3, 'nome' => 'Noite'],
|
||||
];
|
||||
|
||||
SeederUtil::saveList(Model::class, $turnos, 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user