{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/laravel/issues/3589","labels_url":"https://api.github.com/repos/laravel/laravel/issues/3589/labels{/name}","comments_url":"https://api.github.com/repos/laravel/laravel/issues/3589/comments","events_url":"https://api.github.com/repos/laravel/laravel/issues/3589/events","html_url":"https://github.com/laravel/laravel/pull/3589","id":121349271,"number":3589,"title":"Allow defined routes/ips to bypass the down command","user":{"login":"leemason","id":1238646,"avatar_url":"https://avatars.githubusercontent.com/u/1238646?v=3","gravatar_id":"","url":"https://api.github.com/users/leemason","html_url":"https://github.com/leemason","followers_url":"https://api.github.com/users/leemason/followers","following_url":"https://api.github.com/users/leemason/following{/other_user}","gists_url":"https://api.github.com/users/leemason/gists{/gist_id}","starred_url":"https://api.github.com/users/leemason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemason/subscriptions","organizations_url":"https://api.github.com/users/leemason/orgs","repos_url":"https://api.github.com/users/leemason/repos","events_url":"https://api.github.com/users/leemason/events{/privacy}","received_events_url":"https://api.github.com/users/leemason/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-09T22:00:49Z","updated_at":"2015-12-10T17:38:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/laravel/pulls/3589","html_url":"https://github.com/laravel/laravel/pull/3589","diff_url":"https://github.com/laravel/laravel/pull/3589.diff","patch_url":"https://github.com/laravel/laravel/pull/3589.patch"},"body":"When the app is down no requests get through (by design).\r\n\r\nHowever there are cases where it would be ideal to keep certain urls/ips/etc open during this period, for example:\r\n\r\n* Webhook/IPN callbacks from payment providers\r\n* Admin users when upgrading\r\n* App setup when installed\r\n\r\nPlus im sure there are many other use cases.\r\n\r\nThis middleware simply extends the original one (keeping backwards compatibility), and allows you to provide an array of excluded routes and ips.\r\n\r\nThere is also a helpful comment to aid users in adding their own logic for situations like admin users."},"comment":{"url":"https://api.github.com/repos/laravel/laravel/issues/comments/163698092","html_url":"https://github.com/laravel/laravel/pull/3589#issuecomment-163698092","issue_url":"https://api.github.com/repos/laravel/laravel/issues/3589","id":163698092,"user":{"login":"leemason","id":1238646,"avatar_url":"https://avatars.githubusercontent.com/u/1238646?v=3","gravatar_id":"","url":"https://api.github.com/users/leemason","html_url":"https://github.com/leemason","followers_url":"https://api.github.com/users/leemason/followers","following_url":"https://api.github.com/users/leemason/following{/other_user}","gists_url":"https://api.github.com/users/leemason/gists{/gist_id}","starred_url":"https://api.github.com/users/leemason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemason/subscriptions","organizations_url":"https://api.github.com/users/leemason/orgs","repos_url":"https://api.github.com/users/leemason/repos","events_url":"https://api.github.com/users/leemason/events{/privacy}","received_events_url":"https://api.github.com/users/leemason/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T17:38:17Z","updated_at":"2015-12-10T17:38:17Z","body":"\"We sweat the small stuff to help you deliver amazing applications.\"\r\n\r\nIsnt the point of the framework to make it as rapid as possible?\r\n\r\nEverything can be implemented by the programmer but the beauty of laravel is majority of boilerplate stuff is handled for you in a really nice way.\r\n\r\ngranted there are more advanced versions of this as @lucasmichot has referenced (additional checks can be added as per the code comments), but at the cost of 2kb to provide more features with no backwards compatibility problems im struggling to see why this wouldn't be a good addition considering the many use cases?"}}