Installation
Get started with Lettermint Laravel by installing the package via Composer and publishing the configuration file.Requirements
Before installing, ensure your environment meets these requirements:- PHP: 8.2 or higher
- Laravel: 9 or higher
Installation steps
Install via Composer
Install the Lettermint Laravel package using Composer:The package uses Laravel’s auto-discovery feature, so the service provider will be registered automatically.
Publish the configuration file
Publish the configuration file to customize your Lettermint settings:This creates a
config/lettermint.php file in your application where you can configure your API token and webhook settings.Configure your API token
Add your Lettermint API token to your
.env file:You can find your API token in your Lettermint project settings.
Configure the mail transport
Update your
config/mail.php to add the Lettermint mailer. See the Configuration guide for detailed setup instructions.Verify installation
After installation, verify that the package is installed correctly:Check the configuration file
Verify that the configuration file exists atconfig/lettermint.php:
Check the service provider
TheLettermintServiceProvider should be automatically registered. You can verify this by running:
What’s next?
After installing the package, you need to configure it to start sending emails:Configuration guide
Learn how to configure API tokens, mail transports, routes, and advanced features like idempotency
Updating the package
To update to the latest version of Lettermint Laravel:Always check the changelog for breaking changes before updating.