app/Http/Controllers/BPNutritionController.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)
    {
        $nutrition = new BPNutrition;
        $nutrition->diagnose_id = $request->diagnose_id;
        $nutrition->nutrition = $request->nutrition;
        $nutrition->save();
        $request->session()->flash('alert-success', 'Đã tạo chế độ dinh dưỡng thành công');
        return redirect('bpnutrition');
    }
public function store ( Request $ request ) { $ nutrition = new BPNutrition ; $ nutrition -> diagnose_id = $ request -> diagnose_id ; $ nutrition -> nutrition = $ request -> nutrition ; $ nutrition -> save ( ) ; $ request -> session ( ) -> flash ( 'alert-success' , 'Đã tạo chế độ dinh dưỡng thành công'); return redirect ( 'bpnutrition' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//