mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 09:34:10 -08:00
22 lines
509 B
PHP
22 lines
509 B
PHP
|
<?php
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use App\Models\License;
|
||
|
use App\Models\LicenseSeat;
|
||
|
|
||
|
|
||
|
class LicenseSeeder extends Seeder
|
||
|
{
|
||
|
public function run()
|
||
|
{
|
||
|
License::truncate();
|
||
|
factory(License::class, 'license', 10)->create();
|
||
|
|
||
|
LicenseSeat::truncate();
|
||
|
factory(LicenseSeat::class, 'license-seat', 10)->create();
|
||
|
|
||
|
// factory(App\Models\Asset::class, 50)->create()->each(function($u) {
|
||
|
// $u->assetmodel()->save(factory(App\AssetModel::class)->make());
|
||
|
// });
|
||
|
}
|
||
|
}
|