/**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(ProjectTemplate $template, Request $request)
 {
     //
     $list = $template->lists()->create(['name' => $request->input('name')]);
     // return redirect()->route('admin.project_templates.index')->with('collapse',$template->id);
     return redirect()->route('admin.project_templates.index');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(ProjectTemplate $template, Request $request)
 {
     //
     $template->update(['name' => $request->input('name'), 'description' => $request->input('description')]);
     return redirect()->route('admin.project_templates.index');
 }