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

@@ -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);
}
/**