3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-09 01:48:05 +00:00
Files
snipe-it/database/seeders/DepreciationSeeder.php
2021-06-10 20:18:00 +00:00

18 lines
427 B
PHP

<?php
namespace Database\Seeders;
use App\Models\Depreciation;
use Illuminate\Database\Seeder;
class DepreciationSeeder extends Seeder
{
public function run()
{
Depreciation::truncate();
Depreciation::factory()->count(1)->computer()->create(); // 1
Depreciation::factory()->count(1)->display()->create(); // 2
Depreciation::factory()->count(1)->mobilePhones()->create(); // 3
}
}