for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fecony\YandexSpeller\Providers;
use Fecony\YandexSpeller\YandexSpeller;
use Illuminate\Support\ServiceProvider;
class YandexSpellerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot(): void
$this->publishes([
__DIR__.'/../../config/yandex-speller.php' => config_path('yandex-speller.php'),
], 'yandex-speller');
}
* Register the application services.
public function register(): void
$this->mergeConfigFrom(
__DIR__.'/../../config/yandex-speller.php', 'yandex-speller'
);
$this->app->singleton('yandex-speller', function () {
return new YandexSpeller();
});
$this->app->bind(YandexSpeller::class, function () {