]> git.localhorst.tv Git - alttp.git/blob - app/Models/Application.php
switch SNES default port
[alttp.git] / app / Models / Application.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 Application extends Model
9 {
10
11         use HasFactory;
12
13         public function tournament() {
14                 return $this->belongsTo(Tournament::class);
15         }
16
17         public function user() {
18                 return $this->belongsTo(User::class);
19         }
20
21         protected $casts = [
22                 'user_id' => 'string',
23         ];
24
25         protected $with = [
26                 'user',
27         ];
28
29 }