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']);
CodePudding user response:
You are missing Class Request
use Illuminate\Http\Request;
public function show(Request $request)