snipe-it/database/seeds/DepreciationSeeder.php

16 lines
417 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
2016-03-25 01:18:05 -07:00
use App\Models\Depreciation;
use Illuminate\Database\Seeder;
2016-03-25 01:18:05 -07:00
class DepreciationSeeder extends Seeder
{
public function run()
{
Depreciation::truncate();
2017-10-07 05:30:53 -07:00
factory(Depreciation::class, 1)->states('computer')->create(); // 1
factory(Depreciation::class, 1)->states('display')->create(); // 2
factory(Depreciation::class, 1)->states('mobile-phones')->create(); // 3
}
2016-03-25 01:18:05 -07:00
}