mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
6f26fdc376
* add more comments for models * add translation * add calendar component * style calendar, add hotkeys * update readme * move into own service * add calendar test * fix import test, update readme * fix scrollbar for weeks * check for empty request * remove update-genre-list * relation for tv shows has been forgotten to load * stop loading twice and prevent overwriting * remove events outside from month, fix chrome styling
43 lines
787 B
PHP
43 lines
787 B
PHP
<?php
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Setting extends Model {
|
|
|
|
/**
|
|
* No timestamps needed.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* The attributes that should be mutated to dates.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $dates = [
|
|
'last_fetch_to_file_parser',
|
|
];
|
|
|
|
/**
|
|
* Don't auto-apply mass assignment protection.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'show_date' => 'boolean',
|
|
'show_genre' => 'boolean',
|
|
'episode_spoiler_protection' => 'boolean',
|
|
'show_watchlist_everywhere' => 'boolean',
|
|
];
|
|
}
|