/**
  * Store a newly created resource in storage.
  *
  * @param  Request $request
  * @return Response
  */
 public function store(Request $request)
 {
     $material = new Material();
     $material->fill($request->all());
     $material->save();
     return redirect()->route('materials.show', $material);
 }