How to run migrate for sub-module in field_type?
Created 5 years ago by oimken

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)?

oimken  —  5 years ago Best Answer

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  —  5 years 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!