Home > OS >  I'm doing everything right but still getting error
I'm doing everything right but still getting error

Time:09-06

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)
  • Related