File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,26 @@ public function environment()
207
207
return $ env ;
208
208
}
209
209
210
+ /**
211
+ * Determine if the application is in the local environment.
212
+ *
213
+ * @return bool
214
+ */
215
+ public function isLocal ()
216
+ {
217
+ return $ this ->environment () === 'local ' ;
218
+ }
219
+
220
+ /**
221
+ * Determine if the application is in the production environment.
222
+ *
223
+ * @return bool
224
+ */
225
+ public function isProduction ()
226
+ {
227
+ return $ this ->environment () === 'production ' ;
228
+ }
229
+
210
230
/**
211
231
* Determine if the given service provider is loaded.
212
232
*
@@ -913,7 +933,7 @@ public function runningInConsole()
913
933
*/
914
934
public function runningUnitTests ()
915
935
{
916
- return $ this ->environment () == 'testing ' ;
936
+ return $ this ->environment () === 'testing ' ;
917
937
}
918
938
919
939
/**
You can’t perform that action at this time.
0 commit comments