public function updateItemCondition(Request $request)
    {
        $this->validate(
            $request,
            [
                'item_condition_id' => 'required|integer|exists:item_conditions',
                'name'              => 'required',
            ]
        );

        $item_condition = ItemCondition::find($request->input('item_condition_id'));

        $item_condition->name = $request->input('name');

        $item_condition->save();

        return redirect()->back()->withStatus(trans('mustard::admin.item_condition_updated'));
    }
public function updateItemCondition(Request $request)
    {
        $this->validate(
            $request,
            [
                'item_condition_id' => 'required|integer|exists:item_conditions',
                'name'              => 'required',
            ]
        );

        $item_condition = ItemCondition::find($request->input('item_condition_id'));

        $item_condition->name = $request->input('name');

        $item_condition->save();

        return redirect()->back()->withStatus(trans('mustard::admin.item_condition_updated'));
    }
public function updateItemCondition ( Request $ request ) { $ this -> validate ( $ request , [ 'item_condition_id' => 'required|integer|exists:item_conditions' , 'name' => 'required' , ] ) ; $ item_condition = ItemCondition :: find ( $ request -> input ( 'item_condition_id' ) ) ; $ item_condition -> name = $ request -> input ( 'name' ) ; $ item_condition -> save ( ) ; return redirect ( ) -> back ( ) -> withStatus ( trans ( 'mustard::admin.item_condition_updated' ) ) ; }
Update an item condition.

@return \Illuminate\Http\RedirectResponse
Update an item condition .