Use model::class instead of string for binding (#11450)

* Use model::class instead of string for binding

Originally from laravel shift

Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift cleanup
This commit is contained in:
Jellyfrog
2020-04-21 14:28:48 +02:00
committed by GitHub
parent a04c8c0b84
commit 36e54ab9f1
35 changed files with 97 additions and 97 deletions

View File

@@ -47,6 +47,6 @@ class MplsLspPath extends Model implements Keyable
public function lsp()
{
return $this->belongsTo('App\Models\MplsLsp', 'lsp_id');
return $this->belongsTo(\App\Models\MplsLsp::class, 'lsp_id');
}
}