for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace KoenHoeijmakers\LaravelTranslatable;
use Illuminate\Support\ServiceProvider;
use KoenHoeijmakers\LaravelTranslatable\Services\TranslationSavingService;
class TranslatableServiceProvider extends ServiceProvider
{
/**
* Boots the service provider.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__ . ' /../config/translatable.php' => config_path('translatable.php'),
], 'config');
}
* Registers the package's services.
public function register()
$this->app->singleton(TranslationSavingService::class, function () {
return new TranslationSavingService();
});
$this->mergeConfigFrom(__DIR__ . '/../config/translatable.php', 'translatable');