48 lines
1 KiB
PHP
48 lines
1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Settings extends Model
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
'start_date',
|
|
'end_date',
|
|
'nb_participation_player',
|
|
'nb_participation_ip',
|
|
'nb_unique_code_use',
|
|
'use_ean_codes',
|
|
'activated_teaser',
|
|
'teaser_end_activity',
|
|
'activated_close_page',
|
|
'close_page_active_date',
|
|
'redirect_close',
|
|
'reductions_activated',
|
|
'reductions_site',
|
|
'reductions_campaign',
|
|
'web_coupons',
|
|
'notification_emails',
|
|
'winning_proof',
|
|
'company',
|
|
'analytics',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'start_date' => 'datetime',
|
|
'end_date' => 'datetime',
|
|
'teaser_end_activity' => 'datetime',
|
|
'close_page_active_date' => 'datetime',
|
|
];
|
|
}
|