123456789101112131415161718192021222324252627282930 |
- <?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 $connection = 'api_mysql';
-
- protected $table = 'body_templates';
- /**
- * @return mixed获取所有的内容模板
- */
- static function getAllBodyTemplates()
- {
- return $bodyTemplatesResult = self::select('id', 'content','style')->get();
- }
- }
|