I have query for where in native php
where type <> \'point\'
and I try convert to eloquent laravel<
laravel
You're using wrong syntax. Correct syntax for with() is:
->with(['payments' => function ($query) { $query->where('type', '<>', 'point'); }])