예제 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(Services $services, ServiceRequest $request)
 {
     $imageModel = ImageUploadFacade::attachmentUpload($request->file('upl'), new Attachment(), 'services');
     $services->attachment_id = $imageModel->id;
     $services->fill($request->all());
     $services->save();
     return redirect()->route('admin.services.index');
 }