snipe-it/database/seeds/DepreciationSeeder.php
2017-10-07 05:30:53 -07:00

15 lines
416 B
PHP

<?php
use Illuminate\Database\Seeder;
use App\Models\Depreciation;
class DepreciationSeeder extends Seeder
{
public function run()
{
Depreciation::truncate();
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
}
}