/** * Store a newly created resource in storage. * * @return Response */ public function store() { $logbook = new Logbook(); $logbook->unguard(); $logbook->fill(Input::only('title', 'user_id', 'in_overview')); if ($logbook->validate()) { $logbook->save(); } else { return View::make('logbooks.create', ['logbook' => $logbook])->withErrors($logbook->validator()); } return Redirect::to(route('logbooks.index')); }