Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy(Request $request, $id)
 {
     $article = Article::where('id', $id)->first();
     $img_file = $request->input('img');
     Article::DeleteImage('photos/' . $article->image_dir . '/' . $img_file);
     return 'Slika je bila zbrisana';
 }