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:
@@ -37,8 +37,8 @@ class ComposerServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
View::composer('layouts.librenmsv1', 'App\Http\ViewComposers\LayoutComposer');
|
||||
View::composer('layouts.menu', 'App\Http\ViewComposers\MenuComposer');
|
||||
View::composer('layouts.librenmsv1', \App\Http\ViewComposers\LayoutComposer::class);
|
||||
View::composer('layouts.menu', \App\Http\ViewComposers\MenuComposer::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user