| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Songshenzong\Support;
- use Illuminate\Support\ServiceProvider;
- /**
- * Class StringsServiceProvider
- *
- * @package Songshenzong\Support
- */
- class StringsServiceProvider extends ServiceProvider
- {
- /**
- * Indicates if loading of the provider is deferred.
- *
- * @var bool
- */
- protected $defer = false;
- /**
- * Register the service provider.
- *
- * @return void
- */
- public function register()
- {
- $this->app->singleton(
- 'Strings',
- static function () {
- return new Strings();
- }
- );
- $this->app->alias('Strings', StringsFacade::class);
- }
- }
|