/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $art = Articulos::find($id); $art->delete(); return Response()->json(["mensaje" => "borrado"]); }
public function article($id) { $art_cat = Articulos::articulos_cat($id); $arts = Articulos::articulos_id($id); return view('index_articulos_poemas', compact('arts', 'art_cat')); }