<?php
##### Немного информации
##### Модуль Кинотеатр для JohnCMS
##### Автор Гальцев Тимофей
##### VK: https://vk.com/galtsev_t
##### TG: https://t.me/galtsev_t
declare(strict_types=1);
namespace Films\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Johncms\Casts\SpecialChars;
class Category extends Model
{
protected $table = 'films_category';
public $timestamps = false;
protected $casts = [
'nameRu' => SpecialChars::class,
'nameEn' => SpecialChars::class,
'films' => 'integer',
'serials' => 'integer',
'cartoons' => 'integer',
];
protected $fillable = [
'nameRu',
'nameEn',
'films',
'serials',
'cartoons',
];
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
//$this->connection = \Illuminate\Database\Capsule\Manager::connection();
}
}