Skip to content

Adding noContent() and redirect() method in ResponseFactory#190

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Feb 14, 2026
Merged

Adding noContent() and redirect() method in ResponseFactory#190
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Member

This pull request introduces two commonly used HTTP response helpers, redirect() and noContent(), to the ResponseFactory. These additions improve developer experience and align the framework’s response layer more closely with modern PHP frameworks.

New Features

  1. noContent()
    Returns an empty HTTP response, defaulting to status 204 No Content
return response()->noContent();
  1. redirect()
    Creates a redirect response with a configurable status code and headers.
return response()->redirect('/login');

@techmahedy techmahedy merged commit 04c0e05 into doppar:3.x Feb 14, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant