Exemple #1
0
 /**
  * Store a newly created Partner in storage.
  *
  * @param CreatePartnerRequest $request
  *
  * @return Response
  */
 public function store(CreatePartnerRequest $request)
 {
     $input = $request->all();
     $partner = $this->partnerRepository->create($input);
     Flash::success('Partner saved successfully.');
     return redirect(route('partners.index'));
 }
 public function store(CreatePartnerRequest $request)
 {
     $partner = Partner::create($request->all());
     Session::flash('message', $partner->name . ' was registred !');
     return redirect()->route('partners.index');
 }