Welcome Guest, Not a member yet? Register   Sign In
Third Party seeds?
#3

You can do it, but official documentation is not write well.

https://codeigniter4.github.io/userguide...html#seeds

For call a Seed from an external module in CLI asuming that name space of module is: \App\ThirdParty\

Seed must have a namespace like this: \App\ThirdParty\Database\Seeds

Assuming that the class name of this Seed is Auth

the right way to write command is:


Code:
php spark db:seed [color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif][b][color=#333333][size=small][size=small][font=Tahoma, Verdana, Arial, sans-serif]\App\ThirdParty\[/font][/size][/size][/color]Database\Seeds\Auth[/b][/font][/size][/color]
Reply


Messages In This Thread
Third Party seeds? - by blaasvaer - 09-10-2020, 04:53 AM
RE: Third Party seeds? - by InsiteFX - 09-11-2020, 10:02 AM
RE: Third Party seeds? - by eternity6 - 03-24-2021, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB