public function delete($id) { //$token = RestTokensModel::findOrNew($id); $token = RestTokensModel::find($id); $token->delete(); return $token; }