How to run migrate for sub-module in field_type?
Created 6 years ago by oimkenI 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)?
ryanthompson
—
6 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!
Sorry,I figure it out.. just like the normal module Scaffolding should do.
php artisan make:stream test vendor.module.test
to create migrations, andphp artisan addon:install vendor.module.test