belongsTo('App\Category'); } public function user() { return $this->belongsTo('App\User'); } }