Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
b65fa704
Commit
b65fa704
authored
Apr 23, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak the status method.:
parent
f1feb467
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
response.php
laravel/response.php
+14
-7
No files found.
laravel/response.php
View file @
b65fa704
...
...
@@ -243,7 +243,7 @@ class Response {
// All of the cookies for the response are actually stored on the
// Cookie class until we're ready to send the response back to
// the browser. This allows
a
cookies to be set easily.
// the browser. This allows
our
cookies to be set easily.
foreach
(
Cookie
::
$jar
as
$name
=>
$cookie
)
{
$config
=
array_values
(
$cookie
);
...
...
@@ -277,16 +277,23 @@ class Response {
}
/**
*
S
et the response status code.
*
Get / s
et the response status code.
*
* @param int $status
* @return
Response
* @return
mixed
*/
public
function
status
(
$status
)
public
function
status
(
$status
=
null
)
{
if
(
is_null
(
$status
))
{
return
$this
->
foundation
->
getStatusCode
();
}
else
{
$this
->
foundation
->
setStatusCode
(
$status
);
return
$this
;
}
}
}
\ No newline at end of file
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