mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
510 B
PHP
27 lines
510 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Area;
|
|
use App\Models\Part;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class PartSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
//
|
|
|
|
$part = new Part();
|
|
$part->segment = 'preloader';
|
|
$part->part = 'PreloaderCircle';
|
|
$part->area_id = Area::where('name','preloader')->first()->id;
|
|
$part->save();
|
|
|
|
}
|
|
}
|