mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user