Skip to content

Laravel Mailable is a class for building reusable email templates. It separates email logic (data) from presentation (Blade views), allowing for clean and maintainable email notifications. You can use Markdown or HTML for email content and leverage Laravel features like attachments and queueing.

Notifications You must be signed in to change notification settings

natthasath/demo-laravel-breeze-mailable

Repository files navigation

🎉 DEMO Laravel Breeze Mailable

Laravel Mailable is a class for building reusable email templates. It separates email logic (data) from presentation (Blade views), allowing for clean and maintainable email notifications. You can use Markdown or HTML for email content and leverage Laravel features like attachments and queueing.

version rating uptime

🚀 Setup

  • Create Project
composer create-project laravel/laravel example-app
  • Install Package
composer require laravel/breeze --dev
  • Configure Environment
cp .env.example .env
  • Migrate
php artisan breeze:install
 
php artisan migrate
npm install
npm run dev
  • Generate Mailable
php artisan make:mail WelcomeEmail --markdown=emails.welcome
php artisan make:controller SendmailController
  • Configure Email
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=email@example.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@example.com
MAIL_FROM_NAME="${APP_NAME}"
  • Custom Component
php artisan vendor:publish --tag=laravel-mail

🏆 Run

php artisan serve

About

Laravel Mailable is a class for building reusable email templates. It separates email logic (data) from presentation (Blade views), allowing for clean and maintainable email notifications. You can use Markdown or HTML for email content and leverage Laravel features like attachments and queueing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages