承接 alliance/laravel-email-template 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

alliance/laravel-email-template

Composer 安装命令:

composer require alliance/laravel-email-template

包简介

improve email templates, allow to create and maintain them some what semi-dynamically

README 文档

README

This is a laravel package that allows to configure email templates and update them through the admin panel

requirements: laravel 5.5 and above

Instructions

Step 1: Installation

Install the package using composer

composer require alliance/laravel-email-template

Step 2: Configuration

Go to your laravel resources folder and create a folder that will contain your email

cd resources/views
mkdir -p email-template/template1 email-template/template2

Publish package files. Run the following command

php artisan vendor:publish

Open the config file and add your configurations

vim app/config/laravelemailtemplate.php

Schedule your laravel app to run the extract command every minute

vim app/Console/Kernel.php

Inside the schedule() function. Add the following line.

$schedule->command('laravelemailtemplate:extract')->everyMinute()

For more details on scheduling. Check laravel documentation

Usage

Every email you want to allow the admin to update, you have to add it to the config file.

The config example:

return [
    // ... some configs
    templates => [
        [
            "name" => "template1", // template name
            "variables" => ["variable1", "variable2"], // available placeholders to be considered for the template
            "folder" => "email-template/template1", // path inside resources/views, NB: Each Template must have its own folder
            "entry_file" => "template.php" 
        ]
    ],
    // ... more configs
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固