Laraconfig icon indicating copy to clipboard operation
Laraconfig copied to clipboard

Incorrect settable_type value upon migration

Open rudolfbruder opened this issue 2 years ago • 8 comments

Hi,

I am facing issue that when I run the php artisan settings:migrate command my database gets nicely seeded how ever the models do not include backslashes there for $user->settings does not work.

However I found out that if I run $user->settings()->initialize() it will recreate all of the settings with proper settable_type including backslashes. Here is a screenshot:

image

I am able to solve this issue by editing the fillSettings method in Pipes\CreateNewMetadata.php file like this: image However I am not sure if it is the proper approach.

Can someone please help me why is this behavior here?

rudolfbruder avatar Dec 28 '21 06:12 rudolfbruder

Unfortunately the merge request (Issue 21) has not solved my problem. I tried it on windows as well as on mac and still when i run php artisan settings:migrate the settable_type is inserted without backslashes like this: AppModelsUserUser

Any advice please? Am I doing something wrong?

Thanks!

rudolfbruder avatar Dec 29 '21 12:12 rudolfbruder

Same issue here.

divdax avatar Jan 11 '22 01:01 divdax

@divdax I had to create a fork until this gets fixed :)

rudolfbruder avatar Jan 11 '22 05:01 rudolfbruder

Can someone test this works on master?

My old PC went to hell.

DarkGhostHunter avatar Jan 11 '22 15:01 DarkGhostHunter

Nah did not work after your last approved pull request. Still using my fork.

rudolfbruder avatar Jan 11 '22 17:01 rudolfbruder

@DarkGhostHunter Hey, can we do something about this? Should raise a PR?

rudolfbruder avatar Feb 07 '22 17:02 rudolfbruder

@DarkGhostHunter Hey, can we do something about this? Should raise a PR?

Pleas, hands full.

DarkGhostHunter avatar Feb 07 '22 18:02 DarkGhostHunter

Raised #35 for this one @DarkGhostHunter. Can you please take a look?

rudolfbruder avatar Feb 15 '22 07:02 rudolfbruder