Created
January 15, 2014 23:01
-
-
Save zeroeth/8446508 to your computer and use it in GitHub Desktop.
Laravel request debugging.
This file contains hidden or 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
| <?php | |
| use Illuminate\Support\Facades\Log; | |
| /** | |
| * Debug request information. | |
| */ | |
| Route::filter('debug_info', function( $route, $request ) { | |
| Log::debug("REQUEST", array( | |
| "route"=>$route->getAction(), | |
| "session"=>Session::all(), | |
| "header"=>$request->header()) | |
| ); | |
| }); | |
| Route::when('*', 'debug_info'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment