-
-
Notifications
You must be signed in to change notification settings - Fork 813
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
Make config
variable available only in infyom view files
#1088
base: develop
Are you sure you want to change the base?
Conversation
i install https://laravel.com/docs/10.x/pulse on laravel 10, this commit effectively resolved an issue encountered during the installation of Laravel Pulse Cannot use object of type InfyOm\Generator\Common\GeneratorConfig as array |
Good catch @abewartech. It looks like Pulse is also using As a temp solution you need several steps:
|
What I've just found is that other infyom packages also depend on the |
I think it would be helpful if Laravel Generator had a configuration option where we could specify directories or files to exclude, or conversely, include. After encountering the same issue while attempting to use Pulse, I believe right now the suitable solution is temporarily setting the "dont-discover" option to ["infyomlabs/laravel-generator"] until a patch is available. |
eb197ee
to
554ad5c
Compare
As mentioned above Seems working ok. |
Also experiencing this conflict after upgrading to Laravel 10 and installing Laravel Pulse. |
After upgrade to laravel 10 and upgrading this library we noticed that every
$config
variable that we use in our blade files now suddenly has type ofInfyOm\Generator\Common\GeneratorConfig
instead of being something we want it to be.After some research we found THIS COMMIT that registers
$config
for every view.So expected behaviour is this (please note, myveiw.blade.php is not related to laravel-generator in any way):
actual behaviour:
This PR makes
$config
variable available for laravel-generator's views only.@mitulgolakiya could you please help me to make sure it's valid change that doesn't break what was intended initially with that commit.
Thanks!