/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { $flyer = Flyer::create($request->all()); Auth::user()->publish(new Flyer($request->all())); flash('info', 'Flyer successfully saved'); return redirect(flyer_path($flyer)); }
public function store(FlyerRequest $request) { // Create the flyer Flyer::create($request->all()); flash()->success('Success', 'The Flyer was created!'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $reqest * @return \Illuminate\Http\Response */ public function store(Requests\FlyerRequest $request) { //create the flyer \App\Flyer::create($request->all()); flash('Create with success', 'Success!'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); // flash('Success','Your flyer has been created'); flash()->success('Success', 'Your flyer has been created'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param FlyerRequest|Request $request * @return Response */ public function store(FlyerRequest $request) { $input = array_add($request->all(), 'user_id', Auth::id()); $flyer = Flyer::create($input); flash()->success('Success', 'your flyer has been created'); return Redirect::to(url('/' . $flyer->zip . '/' . $flyer->street)); }
public function store(Requests\FlyerRequest $request) { //var_dump($request); Flyer::create($request->all()); //flash('Flyer successfully created!'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); flash()->success('Success!', 'Your flyer is created, great Job!.'); return redirect()->back(); // temporary }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return Response */ public function store(FlyerRequest $request, Flash $flash) { Flyer::create($request->all()); flash()->success('success!', 'your flyer has been created'); return redirect()->back(); //temporary }
/** * Store a newly created resource in storage. * * @return Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); session()->flash('flash_message', 'Flyer successfully created'); // flash messaging //return redirect()->back(); }
public function store(Requests\FlyerRequest $request) { Flyer::create($request->all()); // session()->flash('flash_message','Flyer successfully created!'); //flash('Success', 'Your flyer has been created'); flash()->success('Success!', 'Your flyer has been created.'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return Response */ public function store(FlyerRequest $request) { //persist Flyer::create($request->all()); //flash flash("Sucess", "Your Flyer has been created"); //redirect to home... return redirect()->back(); }
public function store(FlyerRequest $request) { //persist the flyer Flyer::create($request->all()); //flash messaging flash()->success('Success', 'Flyer was inserted with success!'); //redirect to landing page return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); //validate the form flash()->success('Success', 'Your flyer has been created.'); // flash success message return redirect()->back(); //temporary redirection to home page. }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { //Validation wird im FlyerRequest gemacht Flyer::create($request->all()); flash()->Success('Success', 'Your Flyer has been successfull saved in our DB'); return redirect()->back(); //temporary //persist //redirect to a landing page }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return Response */ public function store(FlyerRequest $request) { //persist the flyer Flyer::create($request->all()); //flash a message flash()->success('Success!', 'Your flyer has been created.'); //redirect to the landing page return redirect()->back(); //temporary }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Requests\FlyerRequest $request) { // Notice the validation is being done through the custom Request in the above parameter // This method won't get triggered if the Request doesn't pass validation in the FlyerRequest.php file Flyer::create($request->all()); flash()->overlay("Success!", "Listing successfully created."); // We've created "flash" as a global function in app/helpers.php // where it accesses the class and object we've created // in app/http called Flash.php flash('Flyer successfully created!'); $street = $street = str_replace('-', ' ', $request->street); return redirect($request->zip . '/' . $street); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\FlyerRequest $request * @return \Illuminate\Http\Response */ public function store(Requests\FlyerRequest $request) { // // validate form //$this->validate(); //USING FlyerRequest to Validate // persist flyer Flyer::create($request->all()); //flash messaging flash('Success', 'Flyer successfully created!'); // redirect to landing page or the flyer return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { $flyer = Flyer::create($request->all()); flash()->success('Success!', 'Your flyer has been created.'); return redirect()->to($flyer->zip . '/' . str_replace(' ', '-', $flyer->street)); }
/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); flash()->success('Woohoo', 'Flyer successfully created!'); return redirect()->route('home_path'); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Requests\FlyerRequest $request) { \App\Flyer::create($request->all()); flash()->success('Lets go', 'hey ho'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param App\Http\Requests\FlyerRequest $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); flash()->success("Great!", "The flyer has been created C:"); return redirect()->route('flyers.index'); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); flash()->success('success', 'Flyer successfully created !', 'success'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param FlyerRequest $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); flash()->success('Success!', 'You know how to learn Laravel'); return redirect()->back(); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { //persist the flyer Flyer::create($request->all()); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(FlyerRequest $request) { Flyer::create($request->all()); return redirect()->back(); }