1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
flox/backend/app/Setting.php
Viktor Geringer 23ecc26978
Feature/reminder (#110)
* move refresh in tab, add job for refresh, add new setting

* check for setting in kernel

* prepare frontend and database for reminders

* prepare mail settings

* add timezone config

* add security-advisories package

* set back APP_URL

* send daily reminder

* update headlines for daily reminder

* fix postgres id sequence on import

* some basic responsive behaviour

* add weekly reminder

* fix footer css

* update readme

* change loading logo
2018-12-27 21:35:41 +01:00

46 lines
906 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',
'refresh_automatically' => 'boolean',
'daily_reminder' => 'boolean',
'weekly_reminder' => 'boolean',
];
}