kithkin/app/Models/Subscription.php

32 lines
710 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Subscription extends Model
{
protected $table = 'calendarsubscriptions';
public $timestamps = false; // sabre table without created_at/updated_at; may need a meta table?
protected $fillable = [
'uri',
'principaluri',
'source',
'displayname',
'calendarcolor',
'refreshrate',
'calendarorder',
'striptodos',
'stripalarms',
'stripattachments',
];
/** Cast tinyint columns to booleans */
protected $casts = [
'striptodos' => 'bool',
'stripalarms' => 'bool',
'stripattachments' => 'bool',
];
}