<?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 QrCodes extends Model
{
	protected $connection = 'api_mysql';
	
    protected $table = 'qr_code';

    /**
     * @return mixed获取所有的二维码信息
     */
    static function getQrCodes()
    {
        return  self::select('id', 'code_url')->get();
    }
}