app/Http/Controllers/Admin/CateController.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(Request $request)
    {
        $post = $request->except('_token');
        $res = Cate::create($post);
        if($res){
            return redirect('/cate');
        }
    }
public function store ( Request $ request ) { $ post = $ request -> except ( '_token' ) ; $ res = Cate :: create ( $ post ) ; if ( $ res ) { return redirect ( '/cate' ) ; } }
Store a newly created resource in storage.
Store a newly created resource in storage .