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.
30 lines
583 B
PHTML
30 lines
583 B
PHTML
3 months ago
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use App\Models\Category;
|
||
|
use App\Models\Evaluation;
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
|
||
|
class EvaluationSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*/
|
||
|
public function run(): void
|
||
|
{
|
||
|
//
|
||
|
$e = new Evaluation();
|
||
|
$e->title = __('Quality');
|
||
|
$e->save();
|
||
|
|
||
|
|
||
|
$e = new Evaluation();
|
||
|
$e->title = __('Packing');
|
||
|
$e->evaluationable_type = Category::class;
|
||
|
$e->evaluationable_id = 1;
|
||
|
$e->save();
|
||
|
}
|
||
|
}
|