Skip to content

Commit 2bf1859

Browse files
authored
Merge pull request #532 from Kovah/dev
Release
2 parents 54bf6ee + 0a2674b commit 2bf1859

File tree

12 files changed

+396
-438
lines changed

12 files changed

+396
-438
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,14 @@ LinkAce provides multiple ways of installing it on your server. The complete doc
7373

7474
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.
7575

76-
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:
76+
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:
7777

78-
#### Documentation and Community
78+
#### Our Supporters on Open Collective
79+
80+
<a href="https://opencollective.com/linkace"><img src="https://opencollective.com/linkace/individuals.svg?width=890"></a>
81+
82+
83+
### Documentation and Community
7984

8085
Details about all features and advanced configuration can be found in the [**project documentation**](https://www.linkace.org/docs/).
8186
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.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace App\Console\Commands;
4+
5+
use App\Models\User;
6+
use Illuminate\Console\Command;
7+
8+
class ListUsersCommand extends Command
9+
{
10+
protected $signature = 'users:list';
11+
12+
protected $description = 'List all active users with user name and email';
13+
14+
public function handle(): void
15+
{
16+
$this->info('Searching for all registered users...');
17+
18+
$users = User::query()->get(['id', 'name', 'email']);
19+
20+
if ($users->isEmpty()) {
21+
$this->info('No users found.');
22+
return;
23+
}
24+
25+
$this->table(['ID', 'Name', 'Email'], $users->toArray());
26+
}
27+
}

app/Console/Kernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Console\Commands\CheckLinksCommand;
66
use App\Console\Commands\CleanupLinkHistoriesCommand;
77
use App\Console\Commands\ImportCommand;
8+
use App\Console\Commands\ListUsersCommand;
89
use App\Console\Commands\RegisterUserCommand;
910
use App\Console\Commands\ResetPasswordCommand;
1011
use App\Console\Commands\UpdateLinkThumbnails;
@@ -25,6 +26,7 @@ class Kernel extends ConsoleKernel
2526
CleanupLinkHistoriesCommand::class,
2627
ImportCommand::class,
2728
UpdateLinkThumbnails::class,
29+
ListUsersCommand::class,
2830
];
2931

3032
/**

0 commit comments

Comments
 (0)