Update CategoryController.php

This commit is contained in:
James Cole 2015-03-25 16:14:28 +01:00
parent 0dbe44764b
commit a867b60af0

View File

@ -154,6 +154,10 @@ class CategoryController extends Controller
$category = $repository->store($categoryData);
Session::flash('success', 'New category "' . $category->name . '" stored!');
if (intval(Input::get('create_another')) === 1) {
return Redirect::route('categories.create');
}
return Redirect::route('categories.index');