/**
  * 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');
 }