// model/Article.php public function category() { return $this->belongsTo('Category', 'category_id', [], [], 'LEFT')->setEagerlyType(0); }