示例#1
0
 /**
  * Save a new status
  *
  * @return Response
  */
 public function store()
 {
     $this->publishStatusForm->validate(Input::only('body'));
     $this->execute(new PublishStatusCommand(Input::get('body'), Auth::user()->id));
     Flash::message('Your status has been updated!');
     return Redirect::refresh();
 }
示例#2
0
 /**
  * Save a new status
  *
  * @return Response
  */
 public function store()
 {
     $input = array_add(Input::get(), 'userId', Auth::id());
     $this->publishStatusForm->validate($input);
     $this->execute(PublishStatusCommand::class, $input);
     Flash::message('Your status has been updated!');
     return Redirect::back();
 }
示例#3
0
 /**
  * Save a new status
  *
  * @return Response
  */
 public function store()
 {
     //        $input = Input::get();
     //        $input['userId'] = Auth::id();
     $input = array_add(Input::get(), 'userId', Auth::id());
     $this->publishStatusForm->validate($input);
     $this->execute(PublishStatusCommand::class, $input);
     //        $status = $this->execute(new PublishStatusCommand(Input::get('body'), Auth::user()->id));
     Flash::message('Your status has been updated');
     return Redirect::back();
 }
示例#4
0
 public function store()
 {
     /*$input = Input::get();
       $input['userId'] = Auth::id();*/
     $input = array_add(Input::get(), 'userId', Auth::id());
     $this->publishStatusForm->validate($input);
     $this->execute(PublishStatusCommand::class, $input);
     /*$this->execute(
           new PublishStatusCommand(Input::get('body'), Auth::user()->id)
       );*/
     //$command = PublishStatusCommand(Input::get('body'));
     //flash message
     return Redirect::back();
 }