2016-10-18 09:57:47 +02:00
|
|
|
<?php
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Setting extends Model {
|
|
|
|
|
2018-11-09 22:10:33 +01:00
|
|
|
/**
|
|
|
|
* No timestamps needed.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2016-10-18 09:57:47 +02:00
|
|
|
public $timestamps = false;
|
2016-12-20 11:17:22 +01:00
|
|
|
|
2018-11-09 22:10:33 +01:00
|
|
|
/**
|
|
|
|
* The attributes that should be mutated to dates.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2017-01-06 13:00:18 +01:00
|
|
|
protected $dates = [
|
|
|
|
'last_fetch_to_file_parser',
|
|
|
|
];
|
|
|
|
|
2018-11-09 22:10:33 +01:00
|
|
|
/**
|
|
|
|
* Don't auto-apply mass assignment protection.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $guarded = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that should be cast to native types.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2018-03-11 21:08:44 +01:00
|
|
|
protected $casts = [
|
|
|
|
'show_date' => 'boolean',
|
|
|
|
'show_genre' => 'boolean',
|
|
|
|
'episode_spoiler_protection' => 'boolean',
|
|
|
|
'show_watchlist_everywhere' => 'boolean',
|
|
|
|
];
|
2017-01-24 16:11:47 +01:00
|
|
|
}
|