I have query for where in native php
where type <> \'point\'
and I try convert to eloquent laravel<
laravel
to parse the dynamic parameters within query try this :
$string = 'points'; ->with(['payments' => function ($query) use ($string) { $query->where('type', '<>', $string); }])
this will work!!