try to use Illuminate's capsule and migrate.