app/Http/Controllers/BPIndexController.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)
    {
        $index = new BPIndex;
        $index->from_systolic = $request->from_systolic;
        $index->to_systolic = $request->to_systolic;
        $index->operator = $request->operator;
        $index->from_diastolic = $request->from_diastolic;
        $index->to_diastolic = $request->to_diastolic;
        $index->diagnose_id = $request->diagnose_id;
        $index->save();
        $request->session()->flash('alert-success', 'Đã tạo chỉ số thành công');
        return redirect('bpindex');
    }
public function store ( Request $ request ) { $ index = new BPIndex ; $ index -> from_systolic = $ request -> from_systolic ; $ index -> to_systolic = $ request -> to_systolic ; $ index -> operator = $ request -> operator ; $ index -> from_diastolic = $ request -> from_diastolic ; $ index -> to_diastolic = $ request -> to_diastolic ; $ index -> diagnose_id = $ request -> diagnose_id ; $ index -> save ( ) ; $ request -> session ( ) -> flash ( 'alert-success' , 'Đã tạo chỉ số thành công'); return redirect ( 'bpindex' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//