/**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreatePropertyRequest $request, Redirector $redirect)
 {
     $file = Input::file('image');
     if (Input::hasFile('image')) {
         $fileName = $file->getClientOriginalName();
         $properties = new Property($request->all());
         $properties->image = $fileName;
         $path = base_path('../public_html/uploads');
         if ($file->move($path, $fileName)) {
             $properties->save();
             Session::flash('message', "La casa se agrego correctamente");
             return $redirect->route('admin.properties.show');
         }
     }
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreatePropertyRequest $request, Redirector $redirect)
 {
     $file = Input::file('image');
     if (Input::hasFile('image')) {
         $fileName = $file->getClientOriginalName();
         $path = public_path() . '\\uploads\\';
         $properties = new Property($request->all());
         $properties->image = $fileName;
         if ($file->move($path, $fileName)) {
             //return dd($properties);
             $properties->save();
             return $redirect->route('admin.control.index');
         }
     }
 }