定制 shaz3e/email-templates 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shaz3e/email-templates

最新稳定版本:v1.1.0

Composer 安装命令:

composer require shaz3e/email-templates

包简介

A demo package

README 文档

README

Packagist Version Packagist Downloads License Laravel Version

Email templates are pre-designed email messages that can be customized to fit your needs. They can be used to send automated emails, such as welcome emails, abandoned cart reminders, and order confirmations all emails will written in html and queueable mean there is no need to create additional jobs or mailable everytime for all your email and best thing is you can write your own email from dashboard and use template placeholders like {{ name }} in your email but you need to register placeholders in the specific email.

Before proceeding the installation steps please read the complete documention to take only the step which is necessary for your application. We suggest only publish config file as this may be necessary to manage prefix, routes and middleware and only publish views when you need to modify it. It built with livewire grid view which poll data only visible mode.

Note This package is built for S3 Dashboard and require extra efforts to use with any laravel application.

Install via composer

composer require shaz3e/email-templates

Publish migration only

php artisan vendor:publish --tag=email-templates-migration

Migrate database and permissions

php artisan migrate
php artisan storage:link

Create template from dashboard visit http://s3-dashboard.test/manage/email-templates/create

Create Template from Console

php artisan email-templates:create
  • Provide Unique Template Key
  • Provide Template Name
  • Provide Email Subject

Or create all together

php artisan email-templates:create "key" "name" "subject"

replace key, name, subject according to your requirements

To send email use the following function in your application or preview/view the template and use the code at the end of show route

use Shaz3e\EmailTemplates\Services\EmailService;

$emailService = new EmailService();
$emailService->sendEmailByKey('{template_key}', $user->email, [
    'name' => $user->name,
    'email' => $user->email,
]);

Publisables

Publish config only

php artisan vendor:publish --tag=email-templates-config

Publish views only

php artisan vendor:publish --tag=email-templates-view

Publish language files only

php artisan vendor:publish --tag=email-templates-lang

Contributing

License

Email Templates with S3 Dashboard is licensed under the MIT license. Enjoy!

Credit

GitHub commit activity

GitHub Stats

GitHub Contributions Graph

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-26