public static function runDeleteMass($r) { if ($r != Confide::user()->id) { $user = User::find($r); if (!empty($user)) { Event::fire('controller.user.delete', array($user)); $user->delete(); } else { return Api::to(array('error', '')) ?: \Response::json(array('result' => 'error', 'error' => '')); } } }
public static function make($file, $data = array()) { return Api::make($data) ?: View::make(self::path($file), $data); }