Try something like this:
'data4' => KSMschema::where('opmerkingen', '<>', '')->get();
// note <> instead of !=
or if your field opmerkingen
supports NULL values you could also use this:
'data4' => KSMschema::whereNotNull('opmerkingen')->get();
It works. Thanx :D But do you know why laravel uses '<>' in stead of the mysql notation '!=' ? I am curious why they made such a decision.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community