1234567891011121314151617181920212223242526 |
- <?php
- /**
- * Created by PhpStorm.
- * User: shensong
- * Date: 2019/11/27
- * Time: 17:07
- */
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class CustomerCoupons extends Model
- {
- protected $table = 'customer_coupons';
- public $timestamps = false;
- public static function getCustomerCouponsLog($phone) {
- $self = new self();
- $log = $self->where('phone',$phone)->get();
- $log = json_decode(json_encode($log),true);
- return $log;
- }
- }
|