Voyager: No query results for model [App\User] after trying to add new user on a fresh install

Created on 23 Feb 2018  路  8Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.5.38
  • Voyager Version: latest
  • PHP Version: 7.1
  • Database Driver & Version: 5.6

Description:

Just installed a fresh laravel 5.5 + latest voyager install but goot this error on terminal after trying to add user

Steps To Reproduce:

install laravel + voyager and try : php artisan voyager:admin [email protected]

Most helpful comment

Had same issue here, forgot the --create at the end!
php artisan voyager:admin [email protected] --create

All 8 comments

Do you have a model class at app/User.php?

screenshot 2018-02-23 18 10 47

Just tested the same thing on my machine and I'm unable to reproduce it. Make sure you're in the right directory and try composer dump-autoload.

Happened for me when I installed without dummy data. Installing over installation using the --with-dummy flag fixes the issue. Steps to reproduce the issue:

1.) Create new Laravel
2.) Require Voyager
3.) Set up .env to DB
4.) Don't migrate
5.) Attempt install (without dummy)
6.) If successful, now try adding admin user, see 7.) if unsuccessful
7.) Rename Laravel migration file dates to earlier years (or at least months) php artisan migrate:status will show you that the batch might be too early on some Voyager migrations in reference to core Laravel migrations.

Had same issue here, forgot the --create at the end!
php artisan voyager:admin [email protected] --create

Had same issue here, forgot the --create at the end!
php artisan voyager:admin [email protected] --create

yes. it works :)

when i write the commande php artisan voyager:admin [email protected] --create
i go t this error
Enter the admin name:
>

Aborted.

please help

This has been closed for 2 years and was for a MUCH older version. Please ask questions in slack instead

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zzpwestlife picture zzpwestlife  路  3Comments

IvanBohonosiuk picture IvanBohonosiuk  路  4Comments

wislem picture wislem  路  3Comments

TXRRNT picture TXRRNT  路  3Comments

vaggelis2018 picture vaggelis2018  路  3Comments