Skip to content

Instantly share code, notes, and snippets.

@ashour
Created February 19, 2019 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashour/d34f0e12ddd1ef1638e063b78d3afac9 to your computer and use it in GitHub Desktop.
Save ashour/d34f0e12ddd1ef1638e063b78d3afac9 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use App\Locale;
use Illuminate\Support\ServiceProvider;
class LocaleServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->app->singleton(Locale::class, function ($app) {
return new Locale($app);
});
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment