app/Http/Controllers/Admin/SizeController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Size  $size
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Size $size)
    {
        $data = $request->all();
        $size->update($data);
        return response()->json([
            'status' => 'edited'
        ], 200);
    }
public function update ( Request $ request , Size $ size ) { $ data = $ request -> all ( ) ; $ size -> update ( $ data ) ; return response ( ) -> json ( [ 'status' => 'edited' ] , 200 ) ; }
Update the specified resource in storage.
Update the specified resource in storage .