Example #1
0
 public function deleteGallery($id)
 {
     $gallery = Gallery::findOrFail($id);
     if ($gallery->delete()) {
         return json_encode(true);
     } else {
         abort('404', 'Error on delete');
     }
 }