public function insertDB($auth, $menu) { $data = ['auth' => $auth, 'menu' => $menu, 'created_at' => time()]; AuthModel::create($data); }