app/Http/Controllers/master_controller.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)
    {
        $data=new class_model();
        $data->class_name=$request->cl_name;
        $data->Monthly_fee=$request->month_fee;
        $data->save();
        return redirect('clst');
    }
public function store ( Request $ request ) { $ data = new class_model ( ) ; $ data -> class_name = $ request -> cl_name ; $ data -> Monthly_fee = $ request -> month_fee ; $ data -> save ( ) ; return redirect ( 'clst' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .