예제 #1
0
 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' => ''));
         }
     }
 }
예제 #2
0
 public static function make($file, $data = array())
 {
     return Api::make($data) ?: View::make(self::path($file), $data);
 }