app/Http/Controllers/ParameterController.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)
    {
        Parameter::create([
            'name' => $request->get('name'),
            'value' => $request->get('value'),
        ]);
    }
public function store ( Request $ request ) { Parameter :: create ( [ 'name' => $ request -> get ( 'name' ) , 'value' => $ request -> get ( 'value' ) , ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
/*
       // dd($request);
        Parameter::create([
            'name' => 'availability_red',
            'value' => 85
        ]);

        Parameter::create([
            'name' => 'availability_yellow',
            'value' => 90
        ]);
        */ // dd($request);