public function store(HourRequest $request) { Hour::create($request->all()); //AFTER the row is added, get the last record to pass to the next page. $hour = Hour::latest()->first(); \Session::flash('flash_message', 'Hours for ' . $hour->employee->first_name . ' were added.'); return redirect('hours'); }