| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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',
- 'expirationdate'
- ];
- /**
- * The attributes that should be cast.
- *
- * @var array
- */
- protected $casts = [
- 'customer_id' => 'integer',
- 'order_id' => 'integer',
- 'type' => 'integer',
- 'amount' => 'decimal:2',
- 'expirationdate' => 'date',
- ];
- }
|