Suppose if I have a table of
ID Col1 Col2 Col3 Col4 Col5 1 Hello "" Hi "" "" 2 two "" Hi here "" I want to get the count of Col(X) without including the empty column. So for record 1 I must have a count of 2 and for record 2 I have 3
How can I do it in MySQL or in Laravel's Eloquent or Query Builder? Thanks in advance.