public function del($id) { $id = (int) $id; App::error(function (ModelNotFoundException $e) { return Response::alert("玩家不存在"); }); $p = DBWOGPlayer::findOrFail($id); $p->delete(); return Response::json(['reload' => TRUE]); }