Convert string references to ::class
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
This commit is contained in:
@@ -14,7 +14,7 @@ class EventConductor extends Conductor
|
||||
* The Model Class
|
||||
* @var string
|
||||
*/
|
||||
protected $class = '\App\Models\Event';
|
||||
protected $class = \App\Models\Event::class;
|
||||
|
||||
/**
|
||||
* The default sorting field
|
||||
|
||||
Reference in New Issue
Block a user