Ver código fonte

v2.0.23-beta

jqh 4 anos atrás
pai
commit
722a4f4779

+ 3 - 3
composer.json

@@ -15,12 +15,12 @@
         "php": ">=7.1.0",
         "symfony/dom-crawler": "~3.1|~4.0|~5.0",
         "laravel/framework": "~5.5|~6.0|~7.0|~8.0",
-        "spatie/eloquent-sortable": "3.*"
+        "spatie/eloquent-sortable": "3.*|4.*"
     },
     "require-dev": {
-        "laravel/dusk": "~5.9",
+        "laravel/dusk": "~5.9|~6",
         "phpstan/phpstan": "^0.12.0",
-        "phpunit/phpunit": "^7.5",
+        "phpunit/phpunit": "^7.5|~9",
         "fzaninotto/faker": "^1.4",
         "mockery/mockery": "^1.0"
     },

+ 1 - 1
src/Admin.php

@@ -30,7 +30,7 @@ class Admin
     use HasAssets;
     use HasHtml;
 
-    const VERSION = '2.0.22-beta';
+    const VERSION = '2.0.23-beta';
 
     const SECTION = [
         // 往 <head> 标签内输入内容

+ 0 - 6
src/Console/CreateUserCommand.php

@@ -25,12 +25,6 @@ class CreateUserCommand extends Command
      */
     public function handle()
     {
-        if (! config('app.debug')) {
-            $this->error('Permission deny!');
-
-            return;
-        }
-
         $userModel = config('admin.database.users_model');
         $roleModel = config('admin.database.roles_model');
 

+ 0 - 6
src/Console/ResetPasswordCommand.php

@@ -25,12 +25,6 @@ class ResetPasswordCommand extends Command
      */
     public function handle()
     {
-        if (! config('app.debug')) {
-            $this->error('Permission deny!');
-
-            return;
-        }
-
         $userModel = config('admin.database.users_model');
 
         $users = $userModel::all();