/**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $validation = Validator::make(Input::All(), Vocabulary::$rules);
     if ($validation->fails()) {
         return Redirect::route($this->route_prefix . 'taxonomy.create')->withInput()->withErrors($validation)->with('message', 'There were validation errors.');
     }
     $vocabulary = Vocabulary::create(['name' => Input::get('name')]);
     $terms = preg_split('/[;,]/', trim(Input::get('terms')));
     foreach ($terms as $term) {
         if ($term != "") {
             $term = Term::create(['name' => $term, 'vocabulary_id' => $vocabulary->id]);
         }
     }
     return Redirect::route($this->route_prefix . 'taxonomy.index');
 }