public function storeAPI($traps_id, $level) { $status = ['traps_id' => $traps_id, 'level' => $level]; Battery::create($status); }