Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
70f28360
Commit
70f28360
authored
May 22, 2013
by
Dmitriy A. Golev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Make view with response status and headers"
This reverts commit
036a0bab
.
parent
357875d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
laravel/response.php
+0
-22
No files found.
laravel/response.php
View file @
70f28360
...
...
@@ -57,28 +57,6 @@ class Response {
{
return
new
static
(
$content
,
$status
,
$headers
);
}
/**
* Create a new response instance with status code.
*
* <code>
* // Create a response instance with a view
* return Response::view('home.no_such_page', 404);
*
* // Create a response instance with a view and data
* return Response::view('item.no_such_page', 404, array('message' => 'Nothing found'), array('header' => 'value'));
* </code>
*
* @param string $view
* @param int $status
* @param array $data
* @param array $headers
* @return Response
*/
public
static
function
view_with_status
(
$view
,
$status
,
$data
=
array
(),
$headers
=
array
())
{
return
new
static
(
View
::
make
(
$view
,
$data
),
$status
,
$headers
);
}
/**
* Create a new response instance containing a view.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment