You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple databases on the same connection, so my models have database prefix. If i run php artisan ide-helper:models the models with a prefix won't work, but if I change default database and remove the prefix it works.
Steps To Reproduce:
Create a model with a $table property with database prefix:
$table = 'laravel.users';
run php artisan ide-helper:models "App\Models\User" -R -W
The generated phpdoc won't have the table fields
Change $table property:
$table = 'users';
run php artisan ide-helper:models "App\Models\User" -R -W
The phpdoc has now the fields
The text was updated successfully, but these errors were encountered:
Versions:
Description:
I have multiple databases on the same connection, so my models have database prefix. If i run php artisan ide-helper:models the models with a prefix won't work, but if I change default database and remove the prefix it works.
Steps To Reproduce:
Create a model with a $table property with database prefix:
$table = 'laravel.users';
run php artisan ide-helper:models "App\Models\User" -R -W
The generated phpdoc won't have the table fields
Change $table property:
$table = 'users';
run php artisan ide-helper:models "App\Models\User" -R -W
The phpdoc has now the fields
The text was updated successfully, but these errors were encountered: