| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace Longyi\Member\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Longyi\Member\Contracts\MemberLog as MemberLogContract;
- class MemberLog extends Model implements MemberLogContract
- {
- use HasFactory;
- protected $table = 'member_log';
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $fillable = [
- 'customer_id',
- 'order_id',
- 'type',
- 'amount',
- 'previous_expire_date',
- 'expirationdate'
- ];
- /**
- * The attributes that should be cast.
- *
- * @var array
- */
- protected $casts = [
- 'customer_id' => 'integer',
- 'order_id' => 'integer',
- 'type' => 'integer',
- 'amount' => 'decimal:2',
- 'previous_expire_date' => 'date',
- 'expirationdate' => 'date',
- ];
- }
|