protected function saveOrUpdateVisit($id, $array) { $model = ModelChurch::find($id); $model->visitantes = $array; $model->save(); return $model; }
$dados = $geolocation->whereRaw($arrayData)->get(); //dd($dados); foreach($dados as $d) { var_dump($d); } //{ location: { $nearSphere: { $geometry: { type: "Point", coordinates: [ -73.93414657, 40.82302903 ] }, $maxDistance: 5 * METERS_PER_MILE } } } $geolocation->name = "Ediaimo Sousa Borges"; $loc = new stdClass(); $loc->type = 'Point'; $loc->coordinates = [-20.778889, 20.639722]; $geolocation->loc = $loc; $geolocation->save(); dd($geolocation); });*/ $app->get('config-app', function () { \App\Domains\Papcj\Models\Church::where('id', '!=', 1)->delete(); \App\Domains\Papcj\Models\User::where('id', '!=', 1)->delete(); });