Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add App::isDebug() method to detect debug mode (#39755)
* add App::isDebug() method to detect debug mode Like App::isLocal(), isProduction(), runningInConsole(), isLocale(), etc. it makes sense to have a method on the Container to detect debug mode. I struggled with the method name, but isDebug() sort of matches most of the methods with similar functionality. I also like: * debugMode() * debugEnabled() * debugModeEnabled() * inDebugMode() * add isDebug() unit test * Update Application.php * Update FoundationApplicationTest.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
8aa1387
commit c978893
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters