Skip to content

Commit

Permalink
Controller updates
Browse files Browse the repository at this point in the history
  • Loading branch information
agentphoenix committed Oct 3, 2024
1 parent ff1d55a commit 9692521
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nova/src/Stories/Controllers/PostTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public function store(StorePostTypeRequest $request)
{
$postType = CreatePostType::run($request->getPostTypeData());

return redirect()
->route('admin.post-types.index')
return to_route('admin.post-types.index')
->notify("{$postType->name} post type was created");
}

Expand All @@ -86,8 +85,7 @@ public function update(UpdatePostTypeRequest $request, PostType $postType)
$request->getPostTypeData()
);

return redirect()
->route('admin.post-types.edit', $postType)
return to_route('admin.post-types.edit', $postType)
->notify("{$postType->name} post type was updated");
}
}

0 comments on commit 9692521

Please sign in to comment.