Skip to content

Commit

Permalink
Make service provider deferred
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Dec 17, 2016
1 parent 0f4d61f commit 33c8309
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Providers/OwnershipServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class OwnershipServiceProvider extends ServiceProvider
*
* @var bool
*/
protected $defer = false;
protected $defer = true;

/**
* Register the service provider.
Expand All @@ -51,4 +51,16 @@ protected function bindUserModel()
return $config->get('auth.providers.users.model', $config->get('auth.model'));
});
}

/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
CanBeOwnerContract::class,
];
}
}

0 comments on commit 33c8309

Please sign in to comment.