/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $workflowType = WorkflowType::first();
     return redirect()->route('setup.workflow-type.show', $workflowType->id);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     WorkflowType::destroy($id);
     return redirect()->route('setup.workflow-type.index');
 }