function getPaginaDetalii($paginaID) { return PaginiStatice::where('id', $paginaID)->first(); }
/** * Remove the specified resource from storage. * * @param int $id * * @return Responsemysql interval between records id */ public function sortare(Request $request) { $val = explode("&", str_replace("set[]=", "", $request->position)); foreach ($val as $key => $valoare) { $array = ['Ord' => $key]; PaginiStatice::where('id', $valoare)->update($array); } }