Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enabling Laravel APP_DEBUG dynamically in production environment

NotificationsYou must be signed in to change notification settings

Benjaminhu/laravel-app-debug-dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

You can install the package via composer:

$ composer require benjaminhu/laravel-app-debug-dynamic

Usage

Simply register the newly created class in your (top of) middleware stack.

// app/Http/Kernel.phpclass Kernelextends HttpKernel{protected$middleware = [        \Benjaminhu\LaravelAppDebugDynamic\AppDebugDynamicMiddleware::class,// ...    ];// ...}

Publish config:

$ php artisan vendor:publish --provider="Benjaminhu\LaravelAppDebugDynamic\AppDebugDynamicServiceProvider"

Setup .env (remember: inproduction mode alway set:APP_DEBUG=false!):

# ...APP_DEBUG=falseAPP_DEBUG_DYNAMIC_COOKIE_NAME=<CHOOSE COOKIE NAME>APP_DEBUG_DYNAMIC_COOKIE_SECRET=<CHOOSE COOKIE SECRET># optional# APP_DEBUG_DYNAMIC_ALLOWED_IPS=<LIST, OF, ALLOWED, IP, ADDRESSES># ...

Testing

$ composertest

About

Enabling Laravel APP_DEBUG dynamically in production environment

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp