Shift bindings
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.pull/1/head
parent
ddfdade76a
commit
64b166716e
|
|
@ -14,9 +14,9 @@ class MorphServiceProvider extends ServiceProvider
|
|||
public function boot()
|
||||
{
|
||||
Relation::morphMap([
|
||||
'contracts' => 'App\Models\Contract',
|
||||
'cars' => 'App\Models\Car',
|
||||
'contacts' => 'App\Models\Contact',
|
||||
'contracts' => \App\Models\Contract::class,
|
||||
'cars' => \App\Models\Car::class,
|
||||
'contacts' => \App\Models\Contact::class,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue