public function post_new() { $issue = Project\Issue::create_issue(Input::all(), Project::current()); if (!$issue['success']) { return Redirect::to(Project::current()->to('issue/new'))->with_input()->with_errors($issue['errors'])->with('notice-error', 'Whoops, we have a few errors.'); } return Redirect::to($issue['issue']->to())->with('notice', 'Issue has been created!'); }
public function post_new() { $issue = Project\Issue::create_issue(Input::all(), Project::current()); if (!$issue['success']) { return Redirect::to(Project::current()->to('issue/new'))->with_input()->with_errors($issue['errors'])->with('notice-error', __('tinyissue.we_have_some_errors')); } return Redirect::to($issue['issue']->to())->with('notice', __('tinyissue.issue_has_been_created')); }