diff --git a/src/templates/BelongsToManyRelationship b/src/templates/BelongsToManyRelationship index c87c3e4..054acb4 100644 --- a/src/templates/BelongsToManyRelationship +++ b/src/templates/BelongsToManyRelationship @@ -3,5 +3,5 @@ */ public function ___METHOD_NAME___() { - return $this->belongsToMany('App\___TARGET_CLASS___'); -} \ No newline at end of file + return $this->belongsToMany(\App\___TARGET_CLASS___::class); +} diff --git a/src/templates/BelongsToRelationship b/src/templates/BelongsToRelationship index 2181ea4..b75da26 100644 --- a/src/templates/BelongsToRelationship +++ b/src/templates/BelongsToRelationship @@ -3,5 +3,5 @@ */ public function ___METHOD_NAME___() { - return $this->belongsTo('App\___TARGET_CLASS___'); -} \ No newline at end of file + return $this->belongsTo(\App\___TARGET_CLASS___::class); +} diff --git a/src/templates/HasManyRelationship b/src/templates/HasManyRelationship index 0d0e2e1..349d5ba 100644 --- a/src/templates/HasManyRelationship +++ b/src/templates/HasManyRelationship @@ -3,5 +3,5 @@ */ public function ___METHOD_NAME___() { - return $this->hasMany('App\___TARGET_CLASS___'); -} \ No newline at end of file + return $this->hasMany(\App\___TARGET_CLASS___::class); +} diff --git a/src/templates/HasOneRelationship b/src/templates/HasOneRelationship index 57334d5..cd6e24f 100644 --- a/src/templates/HasOneRelationship +++ b/src/templates/HasOneRelationship @@ -3,5 +3,5 @@ */ public function ___METHOD_NAME___() { - return $this->hasOne('App\___TARGET_CLASS___'); -} \ No newline at end of file + return $this->hasOne(\App\___TARGET_CLASS___::class); +}