/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (Auth::user()->id == Noticias::find($id)->user_id || Auth::user()->admin == 1) { Noticias::destroy($id); return "true"; } else { return "false"; } }