/** * Remove the specified resource from sto';//////rage. * * @param int $id * @return Response */ public function destroy($id) { $article = article::find($id); $article->delete(); return "Deleted"; }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $article = article::find($id); $article->delete(); alert()->info('Vaya', 'El Articulo ' . $article->name . ' a sido borrado de forma exitosa'); Flash::error('El Articulo ' . $article->name . ' a sido borrado de forma exitosa¡'); return redirect()->route('admin.articles.index'); }