nightjarnz

Not that this has anything to do with your problem, I just thought I'd add some interesting info :>

nightjarnz

the call directive with Injector is for more complicated settings, i.e. that take multiple parameters.

nightjarnz

Properties can be used for setThing($newThing) calls too - e.g. Host can be either the public field $Host or the function call setHost($newHost)

nightjarnz

Laravel Valet... 🤔 The Link 'n Park of PHP development?

nightjarnz

Similar to how one might fetch records from the database :)

👍 (1)
nightjarnz

You can't/don't. You'll need to obtain the data from elsewhere within that method.

nightjarnz

and if there are any hooks for that. Because I presume it comes before extensions are applied, or looks only at subclasses of DataObject (ps. it's this) - so see if you can hook that somehow. Maybe there's a addDefaultField or something? 🤷🏼

nightjarnz

So now I'd go look at how it is that db fields are found and created (DatabaseAdmin iirc)