public function upload(VehicleTypeRequest $request)
 {
     $uploaderObj = new Uploader();
     $uploaderObj->size = array('width' => 100, 'height' => 100);
     $uploaderObj->directory = 'vehicle_type_images';
     $resp = $uploaderObj->uploadImage($request->file('vehicle_type_image_upload'));
     return response()->json($resp);
 }
 public function upload(TestimonialRequest $request)
 {
     $uploaderObj = new Uploader();
     $uploaderObj->size = array('width' => 100, 'height' => 100);
     $uploaderObj->directory = 'testimonial_images';
     $resp = $uploaderObj->uploadImage($request->file('user_image_upload'));
     return response()->json($resp);
 }
예제 #3
0
 public function upload(SystemUserRequest $request)
 {
     $uploaderObj = new Uploader();
     $uploaderObj->size = array('width' => 100, 'height' => 100);
     $resp = $uploaderObj->uploadImage($request->file('user_image_upload'));
     return response()->json($resp);
 }