public function storeprepare(Requests\CreatePreparationRequest $request) { $input = Request::capture()->all(); $input['Employer_id'] = Auth::id(); $input['updated_at'] = Carbon::now(); Preparation::create($input); \Session::flash('msg', 'You Have Successfully Added Preparation Material : ' . $input['title']); // return $input; //return $input['Employer_id']; return redirect('job/preparation'); }