--- title: "Installation and Setup" description: "Install Laravel Disposable Email with Composer, configure service providers, publish package config, and run initial domain list sync." head: - - meta - name: robots content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: googlebot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: bingbot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' ---
# Installation Laravel Disposable Email is quick to install and easy to add to an existing Laravel app. ## Install the package ```bash composer require erag/laravel-disposable-email ``` ## Service provider registration ### Laravel 11, 12, and 13 Laravel package discovery should normally handle registration. If you want to register it manually, add the provider to `bootstrap/providers.php`: ```php use EragLaravelDisposableEmail\LaravelDisposableEmailServiceProvider; return [ // ... LaravelDisposableEmailServiceProvider::class, ]; ``` ### Laravel 10 If you need manual registration on Laravel 10, add the provider to `config/app.php`: ```php 'providers' => [ // ... EragLaravelDisposableEmail\LaravelDisposableEmailServiceProvider::class, ], ``` ## Publish the configuration ```bash php artisan erag:install-disposable-email ``` This command publishes `config/disposable-email.php`, clears the package cache, and gets the package ready for custom domain management. If the installer or provider registration fails, see [Setup and Blade Help](./help/setup-blade.html). Upgrading from an older release? Follow the [5.x upgrade guide](./upgrades/v5.html) to move to the current facade.