validate([ 'name' => 'string|required', 'description' => 'string|nullable', 'url' => 'string|required', 'api_key' => 'string|nullable', ]); $url = $request->input('url'); $url = "localhost:8081/fn.php"; $json = Http::get($url); $tool = new Tool($json->json()); dd($tool); } /** * Display the specified resource. */ public function show(string $id) { // } /** * Update the specified resource in storage. */ public function update(Request $request, string $id) { // } /** * Remove the specified resource from storage. */ public function destroy(string $id) { // } }