post('http://localhost/api/login', [ 'email' => 'catch@admin.com', 'password' => 'catchadmin', 'remember' => false ])->json(); $this->token = $tokenInfo['data']['token']; } public function dumpJson($res) { dump(\json_encode($res->json())); } }