summaryrefslogtreecommitdiff
path: root/src/Models/User/UsesUserModel.php
blob: 84795480842485835b30be6c7711c04d5ce6c9b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Engelsystem\Models\User;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * @property integer                                                               $user_id
 *
 * @property-read \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\User $user
 *
 * @method static \Illuminate\Database\Query\Builder|static whereUserId($value)
 */
trait UsesUserModel
{
    // protected $fillable = ['user_id'];

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