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
62856a15
Commit
62856a15
authored
Jan 31, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added config option for display_errors. fixed response::error to use dot syntax.
parent
659fd50a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
error.php
application/config/error.php
+17
-0
laravel.php
laravel/laravel.php
+1
-1
response.php
laravel/response.php
+1
-1
No files found.
application/config/error.php
View file @
62856a15
...
...
@@ -66,4 +66,21 @@ return array(
Log
::
exception
(
$exception
);
},
/*
|--------------------------------------------------------------------------
| PHP INI Display Errors Setting
|--------------------------------------------------------------------------
|
| Here you may specify the display_errors setting of the PHP.ini file.
| Typically you may keep this "Off", as Laravel will cleanly handle
| the display of all errors.
|
| However, if you encounter an infamous white screen of death scenario,
| turning this "On" may help you solve the problem by getting the
| real error message being thrown by the application.
|
*/
'display'
=>
'Off'
,
);
\ No newline at end of file
laravel/laravel.php
View file @
62856a15
...
...
@@ -57,7 +57,7 @@ register_shutdown_function(function()
*/
error_reporting
(
-
1
);
ini_set
(
'display_errors'
,
'Off'
);
ini_set
(
'display_errors'
,
Config
::
get
(
'error.display'
)
);
/**
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
...
...
laravel/response.php
View file @
62856a15
...
...
@@ -157,7 +157,7 @@ class Response {
*/
public
static
function
error
(
$code
,
$data
=
array
())
{
return
new
static
(
View
::
make
(
'error
/
'
.
$code
,
$data
),
$code
);
return
new
static
(
View
::
make
(
'error
.
'
.
$code
,
$data
),
$code
);
}
/**
...
...
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