SyntaxFix
Write A Post
Hire A Developer
Questions
Same as AMIB answer, for soft delete error "Unknown column 'table_alias.deleted_at'", just add ->withTrashed() then handle it yourself like ->whereRaw('items_alias.deleted_at IS NULL')
->withTrashed()
->whereRaw('items_alias.deleted_at IS NULL')