Use the ::class syntax

This commit is contained in:
James Brooks
2015-06-16 09:46:29 +01:00
parent abd801b69e
commit 259ec3d3bb
6 changed files with 16 additions and 12 deletions

View File

@@ -42,6 +42,6 @@ class Tag extends Model
*/
public function components()
{
return $this->belongsToMany('CachetHQ\Cachet\Models\Component');
return $this->belongsToMany(Component::class);
}
}