Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Fix for older laravels not having isProduction function
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikyt committed Sep 28, 2019
1 parent d3b3e4f commit b6dde2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 76 deletions.
75 changes: 0 additions & 75 deletions 8wR9yZ.diff

This file was deleted.

3 changes: 2 additions & 1 deletion src/ShopifyApp/Exceptions/BaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ abstract class BaseException extends Exception
*/
public function render(Request $request)
{
if (App::isProduction()) {
// Can not use isProduction due to older Laravels
if (App::environment() === 'production') {
// If in production mode, go to home with message
return Redirect::route('login')->with('error', $this->getMessage());
}
Expand Down

0 comments on commit b6dde2f

Please sign in to comment.