Browse Source

add isStop

visuddhinanda 2 years ago
parent
commit
654d29fe95
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/Tools/Tools.php

+ 7 - 0
app/Tools/Tools.php

@@ -2,6 +2,13 @@
 namespace App\Tools;
 
 class Tools{
+    public static function isStop(){
+        if(file_exists(base_path('.stop'))){
+            return true;
+        }else{
+            return false;
+        }
+    }
 
     public static function getWordEn($strIn)
         {