説明なし

CustomerCoupons.php 484B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shensong
  5. * Date: 2019/11/27
  6. * Time: 17:07
  7. */
  8. namespace App;
  9. use Illuminate\Database\Eloquent\Model;
  10. class CustomerCoupons extends Model
  11. {
  12. protected $table = 'customer_coupons';
  13. public $timestamps = false;
  14. public static function getCustomerCouponsLog($phone) {
  15. $self = new self();
  16. $log = $self->where('phone',$phone)->get();
  17. $log = json_decode(json_encode($log),true);
  18. return $log;
  19. }
  20. }