mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-29 07:29:44 -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
|
|
}
|
|
}
|