/** * Remove the specified resource fr om storage. * * @param int $id * @return Response */ public function destroy($id) { $model = Permistion::findOrFail($id); return json_encode($model->delete() ? array("code" => 1) : array("code" => 0)); }