app/Http/Controllers/PagesController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(addPage $request)
    {
        Navigation::addPage($request);
        Session::flash("flash", $request->pageTitle . 'succesfully created!');
        return redirect('/admin/pages');
    }
public function store ( addPage $ request ) { Navigation :: addPage ( $ request ) ; Session :: flash ( " flash " , $ request -> pageTitle . 'succesfully created!' ) ; return redirect ( '/admin/pages' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .