mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
15 lines
416 B
PHP
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
|
|
}
|
|
}
|