Skip to content

Commit

Permalink
Merge pull request #532 from Kovah/dev
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Kovah authored Sep 4, 2022
2 parents 54bf6ee + 0a2674b commit 2bf1859
Show file tree
Hide file tree
Showing 12 changed files with 396 additions and 438 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ LinkAce provides multiple ways of installing it on your server. The complete doc

I built LinkAce to solve my own problem, and I now offer my solution and code without charging any money. I spent a lot of my free time building this application, so I won't offer any *free* personal support, customization or installation help. If you need help please visit the [community discussions](https://github.com/Kovah/LinkAce/discussions) and post your issue there.

You can get personal and dedicated support by **becoming a [Patreon](https://www.patreon.com/Kovah)** or **[Github Sponsor](https://github.com/sponsors/Kovah)**. :star:
You can get personal and dedicated support by **becoming a supporter on [Open Collective](https://opencollective.com/linkace), [Patreon](https://www.patreon.com/Kovah) or [Github](https://github.com/sponsors/Kovah)**. :star:

#### Documentation and Community
#### Our Supporters on Open Collective

<a href="https://opencollective.com/linkace"><img src="https://opencollective.com/linkace/individuals.svg?width=890"></a>


### Documentation and Community

Details about all features and advanced configuration can be found in the [**project documentation**](https://www.linkace.org/docs/).
Additionally, you may visit the [community discussions](https://github.com/Kovah/LinkAce/discussions) to share your ideas, talk with other users or find help for specific problems.
Expand Down
27 changes: 27 additions & 0 deletions app/Console/Commands/ListUsersCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace App\Console\Commands;

use App\Models\User;
use Illuminate\Console\Command;

class ListUsersCommand extends Command
{
protected $signature = 'users:list';

protected $description = 'List all active users with user name and email';

public function handle(): void
{
$this->info('Searching for all registered users...');

$users = User::query()->get(['id', 'name', 'email']);

if ($users->isEmpty()) {
$this->info('No users found.');
return;
}

$this->table(['ID', 'Name', 'Email'], $users->toArray());
}
}
2 changes: 2 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Console\Commands\CheckLinksCommand;
use App\Console\Commands\CleanupLinkHistoriesCommand;
use App\Console\Commands\ImportCommand;
use App\Console\Commands\ListUsersCommand;
use App\Console\Commands\RegisterUserCommand;
use App\Console\Commands\ResetPasswordCommand;
use App\Console\Commands\UpdateLinkThumbnails;
Expand All @@ -25,6 +26,7 @@ class Kernel extends ConsoleKernel
CleanupLinkHistoriesCommand::class,
ImportCommand::class,
UpdateLinkThumbnails::class,
ListUsersCommand::class,
];

/**
Expand Down
Loading

0 comments on commit 2bf1859

Please sign in to comment.