<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/10/30
 * Time: 10:32
 */
namespace App\Modules\BookGifts\Models;

use Illuminate\Database\Eloquent\Model;

class BookGiftsStatsByGift extends Model {
    protected $table = 'book_gifts_stats_bygift';
    protected $fillable = ['date','gift_name','gift_id','gift_send_times','gift_send_user_num','gift_send_cost'];

    public static function getStats() {
        return self::orderBy('date','desc')->paginate();
    }
}