added schedule for delete users older as 30 days

This commit is contained in:
Milos Holba
2021-05-22 13:12:03 +02:00
parent 0139cc92bf
commit fd7a23225c
4 changed files with 23 additions and 33 deletions

View File

@@ -9,7 +9,6 @@ use App\Models\Folder;
use App\Models\Setting;
use Illuminate\Support\Str;
use App\Services\SetupService;
use Illuminate\Support\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
@@ -88,7 +87,7 @@ class SetupDevEnvironment extends Command
'role' => 'admin',
'email' => 'howdy@hi5ve.digital',
'password' => bcrypt('vuefilemanager'),
'email_verified_at' => Carbon::now(),
'email_verified_at' => now(),
]);
$user
@@ -129,7 +128,7 @@ class SetupDevEnvironment extends Command
'role' => 'user',
'email' => $this->faker->email,
'password' => bcrypt('vuefilemanager'),
'email_verified_at' => Carbon::now(),
'email_verified_at' => now(),
]);
$newbie