You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
507 B
PHP
27 lines
507 B
PHP
<?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);
|
|
}
|
|
}
|