namespace BookStack\Console\Commands;
-use BookStack\User;
-use BookStack\Repos\UserRepo;
+use BookStack\Auth\User;
+use BookStack\Auth\UserRepo;
use Illuminate\Console\Command;
class DeleteUsers extends Command
{
-
/**
* The name and signature of the console command.
*
*
* @var string
*/
- protected $description = 'Delete users that are not "admin" or system users.';
+ protected $description = 'Delete users that are not "admin" or system users';
public function __construct(User $user, UserRepo $userRepo)
{
continue;
}
$this->userRepo->destroy($user);
- ++$numDeleted;
+ $numDeleted++;
}
$this->info("Deleted $numDeleted of $totalUsers total users.");
} else {