]> git.localhorst.tv Git - alttp.git/blob - app/Models/Event.php
try to improve message genration
[alttp.git] / app / Models / Event.php
1 <?php
2
3 namespace App\Models;
4
5 use Illuminate\Database\Eloquent\Factories\HasFactory;
6 use Illuminate\Database\Eloquent\Model;
7
8 class Event extends Model
9 {
10
11         use HasFactory;
12
13         public function description() {
14                 return $this->belongsTo(Technique::class);
15         }
16
17         public function episodes() {
18                 return $this->hasMany(Episode::class);
19         }
20
21         protected $casts = [
22                 'end' => 'datetime',
23                 'start' => 'datetime',
24                 'visible' => 'boolean',
25         ];
26
27         protected $hidden = [
28                 'created_at',
29                 'updated_at',
30         ];
31
32 }