Blame view
app/Models/Category.php
331 Bytes
b80175387 Начальный проект ... |
1 2 3 4 5 6 7 8 9 10 |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Category extends Model { use HasFactory; |
6eff6bf11 Админка сайта кат... |
11 12 |
protected $fillable = ['name', 'image', 'content', 'parent_id']; |
1bd0c6ebe Админка, товары. ... |
13 14 15 16 |
public function goods() { return $this->hasMany(Good::class); } |
b80175387 Начальный проект ... |
17 |
} |