mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
Merge pull request #322 from Boy132/fix/make-user-db-test
Replace DB check in MakeUserCommand
This commit is contained in:
commit
6166fac929
@ -30,7 +30,7 @@ class MakeUserCommand extends Command
|
|||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DB::select('select 1 where 1');
|
DB::connection()->getPdo();
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$this->error($exception->getMessage());
|
$this->error($exception->getMessage());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user