mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 13:33:57 +00:00
Update: laravel 8 to 12, php 7.3 to php 8.3, Jenkinsfile, Unit/Feature testing, vapor, docker
This commit is contained in:
@@ -11,7 +11,6 @@ class Affiliate extends AbstractModel
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'affiliates';
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $fillable = [
|
||||
'code',
|
||||
@@ -24,12 +23,21 @@ class Affiliate extends AbstractModel
|
||||
'orders_count'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'boolean',
|
||||
'clicks_count' => 'integer',
|
||||
'registrations_count' => 'integer',
|
||||
'orders_count' => 'integer'
|
||||
];
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'is_active' => 'boolean',
|
||||
'clicks_count' => 'integer',
|
||||
'registrations_count' => 'integer',
|
||||
'orders_count' => 'integer',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user