Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Product::deleteProduct($id);
     return redirect()->action('Admin\\ProductController@index')->with('message', 'Item deleted successfully.');
 }
 public function deleteProduct($id)
 {
     Product::deleteProduct($id);
     return Redirect::to('/admin/produkty')->with('message', 'Produkt został usunięty.');
 }