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
this is only an enhancement, not a real issue. As I'm upgrading my laravel framework from V3 to V4, Iinstalled your very handy tools (thank you for them) and ran into this issue: With Eloquent models V3 you have to declare the table property as public static, now with V4 as protected. If you are not aware of this, php artisan ide-helper:models your-model leads to a 'nice' PHP Fatal error: Cannot redeclare non static Illuminate\Database\Eloquent\Model::$table as static Your-model::$table in ....
Maybe you could add a warning in your readme. And if not, from now on everybody else will know how to solve the error by themselfs :-)
Happy coding
The text was updated successfully, but these errors were encountered:
Hi,
this is only an enhancement, not a real issue. As I'm upgrading my laravel framework from V3 to V4, Iinstalled your very handy tools (thank you for them) and ran into this issue: With Eloquent models V3 you have to declare the table property as
public static
, now with V4 asprotected
. If you are not aware of this,php artisan ide-helper:models your-model
leads to a 'nice' PHP Fatal error:Cannot redeclare non static Illuminate\Database\Eloquent\Model::$table as static Your-model::$table in ...
.Maybe you could add a warning in your readme. And if not, from now on everybody else will know how to solve the error by themselfs :-)
Happy coding
The text was updated successfully, but these errors were encountered: