/** * Store a new industry. * * @param IndustryRequest $request * @return Response */ public function store(IndustryRequest $request) { //$input = Request::all(); Industry::create($request->all()); return redirect('industries'); //return redirect('industries')->with('message', 'Specialization created'); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(IndustryFormRequest $request) { // Save new industry Industry::create($request->all()); flash()->success('New industry has been added'); return redirect('industries'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(CreateIndustryRequest $request) { $industry = Industry::create($request->all()); return redirect()->route('admin.industries.index'); }