update save pengguna
This commit is contained in:
@@ -61,6 +61,13 @@ class Cawangan extends Model
|
||||
return $this->hasMany(LelongBid::class, 'caw_id', 'id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'kodcaw', 'caw_code');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// public function lelong()
|
||||
// {
|
||||
// return $this->belongsToMany(Lelong::class, 'cawangan_lelong', 'caw_id', 'lelong_id');
|
||||
|
||||
@@ -67,4 +67,10 @@ class User extends Authenticatable
|
||||
$this->notify(new PasswordResetNotification($token));
|
||||
// $user->notify(new PasswordResetNotification($user));
|
||||
}
|
||||
|
||||
public function cawangan()
|
||||
{
|
||||
return $this->hasMany(Cawangan::class, 'caw_code' , 'kodcaw');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user