blob: ff33e9685a91e121fada58d2b854ede38d276a9c (
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
26
|
<?php
namespace Engelsystem\Models\User;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Query\Builder as QueryBuilder;
/**
* @property integer $user_id
*
* @property-read QueryBuilder|User $user
*
* @method static QueryBuilder|static[] whereUserId($value)
*/
trait UsesUserModel
{
// protected $fillable = ['user_id'];
/**
* @return BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class);
}
}
|