public function store(Request $request)
    {
        $this->validate($request, [
            'title' => 'required|max:255',
            'type'  => 'required|max:255|alpha|unique:navigation,type',
        ]);

        $navigation = new Navigation;
        $navigation->fill($request->all());
        $navigation->published = $request->get('published', false);
        $navigation->save();
        flash()->success(trans('cms::navigation.store.success'));

        return redirect()->route('administrator.navigation.index');
    }
public function store(Request $request)
    {
        $this->validate($request, [
            'title' => 'required|max:255',
            'type'  => 'required|max:255|alpha|unique:navigation,type',
        ]);

        $navigation = new Navigation;
        $navigation->fill($request->all());
        $navigation->published = $request->get('published', false);
        $navigation->save();
        flash()->success(trans('cms::navigation.store.success'));

        return redirect()->route('administrator.navigation.index');
    }
public function store ( Request $ request ) { $ this -> validate ( $ request , [ 'title' => 'required|max:255' , 'type' => 'required|max:255|alpha|unique:navigation,type' , ] ) ; $ navigation = new Navigation ; $ navigation -> fill ( $ request -> all ( ) ) ; $ navigation -> published = $ request -> get ( 'published' , false ) ; $ navigation -> save ( ) ; flash ( ) -> success ( trans ( 'cms::navigation.store.success' ) ) ; return redirect ( ) -> route ( 'administrator.navigation.index' ) ; }
Store a newly created navigation.

@param \Illuminate\Http\Request $request
@return mixed
Store a newly created navigation .