public function store(PublishStatusRequest $request) { $this->dispatch(new PublishStatusCommand($request->all())); Flash::info('Your status has been updated'); // Redirects back to the page that submitted the form return Redirect::back(); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(PublishStatusRequest $request) { $this->dispatch(new PublishStatusJob($request->get('body'), Auth::user()->id)); flash()->message('Your status has been updated'); return redirect()->back(); }