Last active
December 16, 2015 14:01
-
-
Save koomai/21a030a85217d513f062 to your computer and use it in GitHub Desktop.
Allow array of IP addresses to bypass Laravel Maintenance Mode
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
App::down(function() | |
{ | |
if ( ! in_array(Request::getClientIp(), ['10.0.2.2'])) | |
{ | |
return Response::view('maintenance', [], 503); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment