app/Http/Controllers/NhaSanXuatController.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)
    {
        $nhasx = new nhaSanXuat();
        $nhasx->tennhasanxuat = $request->tennhasanxuat;
        $nhasx->slug = $request->slug;
        $nhasx->mota = $request->mota;
        $nhasx->save();
        return back()
            ->with('success','Thêm nhà sản xuất thành công');
    }
public function store ( Request $ request ) { $ nhasx = new nhaSanXuat ( ) ; $ nhasx -> tennhasanxuat = $ request -> tennhasanxuat ; $ nhasx -> slug = $ request -> slug ; $ nhasx -> mota = $ request -> mota ; $ nhasx -> save ( ) ; return back ( ) -> with ( 'success' , 'Thêm nhà sản xuất thành công'); }
Store a newly created resource in storage.
Store a newly created resource in storage .
//