예제 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     if (isset($id)) {
         $opcion = \App\Opcion::find($id);
         if ($opcion) {
             //Todo::find($id)->delete();
             \App\Opcion::destroy($id);
             File::Delete('imagenes/' . $opcion->iconoOpcion);
         }
     }
     return redirect('/opcion');
 }