Skip to content

Commit

Permalink
Fix missing isLocal method
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Feb 21, 2023
1 parent b2f65f2 commit 8e91f61
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,26 @@ public function environment()
return $env;
}

/**
* Determine if the application is in the local environment.
*
* @return bool
*/
public function isLocal()
{
return $this->environment() === 'local';
}

/**
* Determine if the application is in the production environment.
*
* @return bool
*/
public function isProduction()
{
return $this->environment() === 'production';
}

/**
* Determine if the given service provider is loaded.
*
Expand Down Expand Up @@ -913,7 +933,7 @@ public function runningInConsole()
*/
public function runningUnitTests()
{
return $this->environment() == 'testing';
return $this->environment() === 'testing';
}

/**
Expand Down

0 comments on commit 8e91f61

Please sign in to comment.