22 lines
441 B
PHP
22 lines
441 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Formulary;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class FormularySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table((new Formulary())->getTable())->truncate();
|
|
$this->call(MandatoryFormularySeeder::class);
|
|
Formulary::factory(30)->create();
|
|
}
|
|
}
|