D
Size: a a a
НГ
AY
class Article extends Model
{
public $timestamps = false;
protected $fillable = [
'title',
'code',
'date_active',
];
public function category()
{
return $this->belongsTo(Category::class);
}
public function author()
{
return $this->belongsTo(Author::class);
}
public function themes()
{
return $this->hasMany(Theme::class);
}
}
AY
D
AY
AY
НГ
НГ
НГ
('article')->where('code', $code)->get();
НГ
НГ
AY
НГ
AP
AP
НГ
НГ
ВИ