public function register()
{
// Allow configuration to be publishable.
$this->publishes([__DIR__ . '/Config/config.php' => config_path('translation.php')], 'config');
// Allow migrations to be publishable.
$this->publishes([__DIR__ . '/Migrations/' => base_path('/database/migrations')], 'migrations');
// Bind guzzle contract to IoC.
$this->app->bind(ClientInterface::class, Client::class);
// Bind translation to the IoC.
$this->app->bind('translation', function (Application $app) {
return new Translation($app);
});
// Bind translation contract to IoC.
$this->app->bind(TranslationInterface::class, 'translation');
// Include the helpers file for global `_t()` function
include __DIR__ . '/helpers.php';
}