22 lines
434 B
PHP
22 lines
434 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Package;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class InvoicingSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/** Reset all packages (forfaits) */
|
|
DB::table((new Package())->getTable())->truncate();
|
|
Package::factory(6)->create();
|
|
}
|
|
}
|