app/Http/Controllers/CategoryController.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(newCategory $request)
    {
        Categories::addCategory($request);
        Session::flash("flash", $request->catName . ' successfully added!');
        return redirect("/admin/categories");
    }
public function store ( newCategory $ request ) { Categories :: addCategory ( $ request ) ; Session :: flash ( " flash " , $ request -> catName . ' successfully added!' ) ; return redirect ( " /admin/categories " ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .