public function getDelete($id)
 {
     $software = Software::find($id);
     File::delete("files/software/" . $software->file);
     $software->delete();
     return Redirect::action('SoftwareController@getIndex')->with('message', 'Deleted!');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     //
     try {
         $software = Software::find($id);
         $software->delete();
         $software_detail = SoftwareDetail::where('id_softare', $id)->delete();
         Session::flash("success", "Success Delete Software");
     } catch (Exception $e) {
         print $e->getMessage();
     }
 }