/**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(\App\Http\Requests\StoreEventRequest $request, $id)
 {
     $event = \App\Event::where(['id' => $id])->first();
     $event->fill($request->all());
     $event->save();
     return redirect(url('admin/events'));
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param StoreEventRequest $request
  * @return Response
  */
 public function store(StoreEventRequest $request)
 {
     $input = $request->all();
     //Add the logged in user ID
     $input['user_id'] = \Auth::user()->id;
     //Handle image uploads
     $input['param']['logo'] = $this->uploadImg(Input::file('param.logo'));
     $input['param']['splash_screen'] = $this->uploadImg(Input::file('param.splash_screen'));
     Event::create($input);
     return redirect('event');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param StoreEventRequest $request
  * @param  int $id
  * @return Response
  */
 public function update(StoreEventRequest $request, $id)
 {
     $this->event->update($request->except('_token', '_wysihtml5_mode'), $id);
     return Redirect::route('backend.event.list')->with('success', trans('event.update.success'));
 }