Coupon.php 381 B

123456789101112131415161718
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Coupon extends Model
  5. {
  6. protected $table = 'v2_coupon';
  7. protected $dateFormat = 'U';
  8. protected $guarded = ['id'];
  9. protected $casts = [
  10. 'created_at' => 'timestamp',
  11. 'updated_at' => 'timestamp',
  12. 'limit_plan_ids' => 'array',
  13. 'limit_period' => 'array'
  14. ];
  15. }