/** * Store a newly created resource in storage. * * @return Response */ public function store(NavigationForm $request) { try { if (Navigation::create($request->all())) { Notification::success('添加成功'); return redirect()->route('backend.nav.index'); } } catch (\Exception $e) { return redirect()->back()->withErrors(array('error' => $e->getMessage()))->withInput(); } }