belongsTo('App\Models\Project', 'project_id'); } public function user() { return $this->belongsTo('App\Models\User', 'created_by'); } }