/** * Show the form for editing the specified resource. * * @param int $id * * @return array */ public function edit($id) { /** @var \App\Models\User $user */ $user = $this->registrar->get($id); return ['message' => 'Ready', 'data' => $user->toJson()]; }