Skip to main content

Raw Queries as a Last Resort

Premium
2:14

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Thakchand avatar

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

above code giving error
Povilas Korop avatar

What is the actual error message?