/**
  * Creates a new computer type.
  *
  * @param ComputerTypeRequest $request
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function store(ComputerTypeRequest $request)
 {
     $type = $this->type->newInstance();
     if ($this->dispatch(new Store($request, $type))) {
         flash()->success('Success!', 'Successfully created computer type.');
         return redirect()->route('computer-types.index');
     }
     flash()->error('Error!', 'There was an issue creating a computer type. Please try again.');
     return redirect()->route('computer-types.create');
 }