/**
  * Store a newly created resource in storage.
  *
  * @param  \Mage2\Setup\Requests\WorkflowStageRequest  $request
  * @return \Illuminate\Http\Response
  */
 public function store(WorkflowStageRequest $request)
 {
     WorkflowStage::create($request->all());
     return redirect()->back()->with('notificationText', 'Workflow Stage Added Successfully!!');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Mage2\Setup\Requests\WorkflowTypeRequest  $request
  * @return \Illuminate\Http\Response
  */
 public function store(WorkflowTypeRequest $request)
 {
     $workflowType = WorkflowType::create($request->all());
     WorkflowStage::create(['name' => 'Start', 'workflow_type_id' => $workflowType->id]);
     return redirect()->route('setup.workflow-type.index')->with('notificationText', 'Workflow Type Created Successfully');
 }