Beispiel #1
0
 /**
  * Handle the creation of a tag.
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function postIndex()
 {
     $form = $this->tags->getForm();
     if (!$form->isValid()) {
         return $this->redirectRoute('admin.tags.index')->withErrors($form->getErrors())->withInput();
     }
     $tag = $this->tags->create($form->getInputData());
     return $this->redirectRoute('admin.tags.index');
 }