/** * Show the search for character profile page. * * @param \Apolune\Contracts\Account\Player $player * @return \Illuminate\View\View */ public function show(Player $player) { $player->load(['properties', 'account.players' => function ($query) { $query->with('properties', 'playerOnline')->visible(); }]); return view('theme::profile.show', compact('player')); }
/** * Execute the job. * * @return \Apolune\Contracts\Account\Player|null */ public function handle() { $this->player->load('account', 'account.properties'); $this->player->properties->deletion = null; $this->player->properties->save(); if ($account = $this->player->account and $account->isDeleted()) { $this->dispatch(new UnterminateAccount($account)); } event(new Undeleted($this->player)); return $this->player; }
/** * Show the change world form. * * @param \Apolune\Contracts\Account\Player $player * @return \Illuminate\View\View */ public function form(Player $player) { $worlds = worlds()->forget($player->world()->id()); return view('theme::account.player.world.form', compact('player', 'worlds')); }