Closed gmgarrison closed 4 years ago
Believe some have reported this for Windows, but not Mac. I will try using Blueprint with a config file to see how I might be able to reproduce.
If it's any help, I'm starting with this Laravel boilerplate: https://github.com/jeremykenedy/laravel-auth. From there, I think about all I've done is add Cashier. Let me know if I can provide anything else!
It's probably unrelated. But I will say Blueprint follows Laravel conventions and structure. So any customizations required by the "template" or "modules" package will need to be done manually, and as such likely diminish the value of Blueprint.
With that said, Blueprint should run without error for custom configurations.
I assumed it would be unrelated but know that having as complete a picture as possible can come in handy in unexpected ways. To my (limited) understanding, the boilerplate follows Laravel conventions as most of it seems to come in the form of supplied middleware. If you end up spending any time poking around in it and come to a different conclusion, I'd appreciate hearing it!
Sorry, but I am unable to reproduce this error. I used your exact draft.yaml
and blueprint.php
config file.
It doesn't seem to be widespread, otherwise Blueprint would be completely unusable. So it has to be some kind of local setup I'm not expecting.
If you are so inclined, maybe you could dig into the code a bit to see what is missing.
A simple dd()
of the values used in TestGenerator.php
on line 76 would likely provide some clues.
I just re-cloned that boilerplate repo, added Blueprint and it worked like a charm... I'll make a mental note to do Blueprint very early in my process and one day maybe I'll debug this and see what's happening. When/if that happens, I'll let you know. Thank you!!
Hey! I have the same error.
I didn't used any boilerplate. Fresh laravel and laravel ui install.
Laravel Version: 7.15.0 PHP Version: 7.4.4 Blueprint Version: 1.14.0 Platform: Win10
Config cache clear helped.
php artisan config:clear
Interesting. So it seems you published a custom config, however, Laravel was caching the original "empty" config. We'll see if clearing cache helps future users.
Issue:
Controller files are generated with no namespace and empty classes. Models are generated in the root directory. (Am I doing any of this right??)
Also,
php artisan blueprint:build
ends with an error relating to the lack of namespaces, I believe:The error was the only output, so I was surprised to see that the Model files, factories and seeders were all generated. (Models also have no namespace.)
draft.yaml:
I also have the blueprint.php config file:
Thanks for any help!!