Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan voyager:admin failes #5881

Closed
kriit24 opened this issue Sep 13, 2024 · 1 comment
Closed

php artisan voyager:admin failes #5881

kriit24 opened this issue Sep 13, 2024 · 1 comment

Comments

@kriit24
Copy link

kriit24 commented Sep 13, 2024

Laravel version

v11.23.4

PHP version

v8.3.11

Voyager version

^1.7

Database

10.6.18-MariaDB-log

Description

php artisan voyager:admin [email protected] failed

Steps to reproduce

php artisan voyager:admin [email protected]

error:

` Illuminate\Database\Eloquent\ModelNotFoundException

No query results for model [App\Models\User].

at vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:621
617▕ if (! is_null($model = $this->first($columns))) {
618▕ return $model;
619▕ }
620▕
➜ 621▕ throw (new ModelNotFoundException)->setModel(get_class($this->model));
622▕ }
623▕
624▕ /**
625▕ * Execute the query and get the first result or call a callback.

  +14 vendor frames 

15 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
`

Expected behavior

added a admin user

Screenshots

No response

Additional context

No response

@bobbyiliev
Copy link
Contributor

This happens because the Voyager 1.7 is not compatible with Laravel 11.

Closing this issue as there is already a tracker for this here: #5846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants