Laravel 11
I installed this package to use
$locations = Location::orderByDistanceFrom('3.5075933','6.5950829','asc')->get();
unfortunately i receive the error
Object of class Illuminate\Database\Query\Expression could not be converted to string
I don't know what to do. I have added the trait to the model. The model has latitude and longitude column.
Laravel 11 I installed this package to use
$locations = Location::orderByDistanceFrom('3.5075933','6.5950829','asc')->get();
unfortunately i receive the error