mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
get user
This commit is contained in:
@@ -15,6 +15,10 @@ class Parentt extends Model
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'user_id',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
|
||||
Reference in New Issue
Block a user