ARTICLE AD BOX
I am using Laravel 13, working in VS Code with the PHP Intelephense extension.
When writing a standard Eloquent query with a where clause, my IDE highlights the code with a red squiggly line and throws the following error:
Not enough arguments. Expected 4. Found 2.
Here is the method in my controller:
public function index(Request $request) { return Exam::where('user_id', $request->user()->id) ->orderBy('exam_date', 'asc') ->get(); }