oimken - 4 months ago

I found there is a sub-module in some field-type, such as repeater-field_type , grid-field_type etc, what is the right way to make sub-module run migrate/seeder at install (or first load? because field_type have no install process)?

Answer

oimken - 4 months ago

Sorry,I figure it out.. just like the normal module Scaffolding should do. php artisan make:stream test vendor.module.test to create migrations, and php artisan addon:install vendor.module.test

oimken - 4 months ago

Sorry,I figure it out.. just like the normal module Scaffolding should do. php artisan make:stream test vendor.module.test to create migrations, and php artisan addon:install vendor.module.test

ryanthompson - 4 months ago

You can also migrate an addon (reset/refresh/etc) like with the migrate artisan commands and adding --addon=anomaly.module.example OR you can run it using the --path method and point to the migrations directory (which is straight Laravel behavior).

Hope this helps!