Attempt.php 367 Bytes
Newer Older
1
2
3
4
5
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\BelongsTo;
7
8
9

class Attempt extends Model
{
10
11
12
13
14
15
16
17
18
    protected $fillable = ['door_id'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function door(): BelongsTo
    {
        return $this->belongsTo(Door::class);
    }
19
}