src/Product/Controllers/AttributeController.php
public function store(AttributeRequest $request)
    {
        $attribute = $this->attributeRepository->create($request->all());
        $this->saveDropdownOptions($attribute, $request);

        return redirect()->route('admin.attribute.index');
    }
public function store(AttributeRequest $request)
    {
        $attribute = $this->attributeRepository->create($request->all());
        $this->saveDropdownOptions($attribute, $request);

        return redirect()->route('admin.attribute.index');
    }
public function store ( AttributeRequest $ request ) { $ attribute = $ this -> attributeRepository -> create ( $ request -> all ( ) ) ; $ this -> saveDropdownOptions ( $ attribute , $ request ) ; return redirect ( ) -> route ( 'admin.attribute.index' ) ; }
Store an Atttibute into Database and Redirect to List Route

@param \AvoRed\Framework\Product\Requests\AttributeRequest $request
@return \Illuminate\Http\RedirectResponse
Store an Atttibute into Database and Redirect to List Route