Add new stream into existing module
Created 5 years ago by firdhanaHi All, Would like ask some question what is best method for this. So, I already have module. and then, someday i have to add new stream to the module. so what is the best way to do it? I have already try migration stream but it didnt genereate all the class,interface,model,etc for me. If i am using make:stream, and reinstall it, is my data will be gone?
thank you before. really need help
This is done the same way as you normally would do it (with a migration) so make one with
make:migration
to put one in the/database/migrations
or use--addon=whatever
to put it in an addon you've made.The big difference is you need to define
protected $namespace = 'The target addon's namespace'
. Typically this is guessed from the location of the migration but since you're modifying one from the outside you need to define this manually.