app/Http/Controllers/NhaCungCapController.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)
    {
        $nhacc = new nhaCungCap();
        $nhacc->tennhacungcap = $request->tennhacungcap;
        $nhacc->diachi = $request->diachi;
        $nhacc->email = $request->email;
        $nhacc->sodienthoai = $request->sodienthoai;
        $nhacc->save();
        return back()
            ->with('success','Thêm nhà cung cấp thành công');
    }
public function store ( Request $ request ) { $ nhacc = new nhaCungCap ( ) ; $ nhacc -> tennhacungcap = $ request -> tennhacungcap ; $ nhacc -> diachi = $ request -> diachi ; $ nhacc -> email = $ request -> email ; $ nhacc -> sodienthoai = $ request -> sodienthoai ; $ nhacc -> save ( ) ; return back ( ) -> with ( 'success' , 'Thêm nhà cung cấp thành công'); }
Store a newly created resource in storage.
Store a newly created resource in storage .
//