Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public function sort() { $sort = explode(',', Input::get('sort')); if ($sort) { foreach ($sort as $key => $id) { $rank = Rank::find($id); $rank->sort = $key + 1; $rank->save(); } } }