Entry.php 393 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Entry extends Model
{
10
    protected $fillable = ['door_location', 'user_id', 'success'];
11
12
13
14
15
16
17
18
19

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