public function postUpdateMediaIDsOrder() { // Find and process media Ids $exhibit = Exhibit::find(Input::get('ex_id')); $exhibit->update(array('media_ids' => json_encode(Input::get('media_ids')))); $exhibit->save(); return Response::json(array('media_ids' => $exhibit->media_ids)); }
/** * Remove a single exhibit. */ public function postRemoveSingle($id) { $exhibit = Exhibit::find($id); $name = $exhibit->title; $exhibit->delete(); return Redirect::route('account')->with('status', 'alert-success')->with('global', 'You just deleted ' . $name); }