Skip to content

Instantly share code, notes, and snippets.

@koomai
Last active December 16, 2015 14:01
Show Gist options
  • Save koomai/21a030a85217d513f062 to your computer and use it in GitHub Desktop.
Save koomai/21a030a85217d513f062 to your computer and use it in GitHub Desktop.
Allow array of IP addresses to bypass Laravel Maintenance Mode
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