Courses

Eloquent: The Expert Level (Laravel 9)

Raw Queries as a Last Resort

Previous: Instead of Multiple If-Else, Use Eloquent When()
avatar

$tasks = Task::selectRaw('id,description, month(created_at) as created_month ') ->whereRaw('month(created_at)= ?', request('month')) ->get();

				above code giving error
				
avatar

What is the actual error message?

avatar
You can use Markdown
avatar
You can use Markdown