1

Too few arguments to function App\Http\Controllers\CurriculumController::show()

public function show($request)
    {
        $id = $request->id;
        return Curriculum::find($id);
    }


Route::post('/curriculum', [CurriculumController::class, 'show']);

1 Answers1

1

You are missing Class Request

use Illuminate\Http\Request;

 public function show(Request $request)
Dhairya Lakhera
  • 4,445
  • 3
  • 35
  • 62