belongsTo(\App\User::class, "user_id")->withDefault([ 'username' => 'System', 'id' => '1' ]); } public function staffuser() { return $this->belongsTo(\App\User::class, "staff_id")->withDefault([ 'username' => 'System', 'id' => '1' ]); } }