app/Http/Controllers/CategorieController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create(Request $request)
    {
        $categorie=new Categorie();
        $categorie->categorie=$request->input("cat");
        $categorie->ref=$request->input("ref");
        $categorie->size=$request->input("size");
        $categorie->save();
        return redirect("/categories");
    }
public function create ( Request $ request ) { $ categorie = new Categorie ( ) ; $ categorie -> categorie = $ request -> input ( " cat " ) ; $ categorie -> ref = $ request -> input ( " ref " ) ; $ categorie -> size = $ request -> input ( " size " ) ; $ categorie -> save ( ) ; return redirect ( " /categories " ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//        dd($request);