for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Syntax\SteamApi;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
class SteamApiServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot()
$this->publishes([__DIR__ . '/../../config/config.php' => config_path('steam-api.php')]);
}
* Register the service provider.
public function register()
$this->registerAlias();
$this->app->singleton('steam-api', function () {
return new Client;
});
* Register the alias for package.
protected function registerAlias()
$this->app->booting(function () {
$loader = AliasLoader::getInstance();
$loader->alias('Steam', 'Syntax\SteamApi\Facades\SteamApi');
* Get the services provided by the provider.
* @return string[]
public function provides()
return ['steam-api'];