<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/11/21
 * Time: 10:42
 */

namespace App\Modules\Promotion\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class BodyTemplates  内容模板
 * @package App\Modules\Promotion\Models
 */
class BodyTemplates extends Model
{
    protected $table = 'body_templates';

    /**
     * @return mixed获取所有的内容模板
     */
    static function getAllBodyTemplates()
    {
        return $bodyTemplatesResult = self::select('id', 'content','style')->get();
    }
}