Skip to content

Commit

Permalink
Merge branch '9.x' into 10.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Application.php
  • Loading branch information
driesvints committed Feb 21, 2023
2 parents 459f628 + 6799e7e commit 7f1672b
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 7f1672b

Please sign in to comment.