belongsTo(\App\User::class, 'user_id')->withDefault([ 'username' => 'System', 'id' => '1' ]); } /** * Belongs to User * * */ public function reciever() { return $this->belongsTo(\App\User::class, 'accepted_by')->withDefault([ 'username' => 'System', 'id' => '1' ]); } }