I fixed this problem, the name of the users table was missing in the proxy transfer file. see next line
$ table-> foreign ('user_id') β links ('id') β on ( '' ) β onUpdate ('cascade') β onDelete ('cascade');
So, I changed it,
$ table-> foreign ('user_id') β links ('ID') β by (' Users ') β OnUpdate (' Cascade ') β OnDelete (' cascade ");
I added the users table name and the problem is fixed.
The reason why I got this problem?
there was no key / pair 'table'=>'users' in the config/auth.php file, mentioned in the providers array, see below (this default value means that when installing a new laravel)
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ],
and the php artisan entrust:migration command runs the command, it pulls the users table name from the providers array above, if there is no specified table in the migration file, the relations are set to empty, like this.
$ table-> foreign ('user_id') β links ('ID') β by ( '' ) β OnUpdate ('Cascade') β OnDelete ('cascade');
So, add a table to the providers array like this.
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, 'table'=>'users' ],
after this run command to transfer the php artisan entrust:migration request, this will create the proper migration file.