Example #1
0
 public static function changesetToMigration(array $changeGroup)
 {
     if (ArrayLib::isDeepEmpty($changeGroup)) {
         return true;
     }
     foreach ($changeGroup as $changesets) {
         foreach ($changesets as $changeset) {
             foreach ($changeset['changes'] as $change) {
             }
         }
     }
     //        MigrationGenerator::update()
 }
Example #2
0
 /**
  * Handles module updates and creations
  */
 public function postModule()
 {
     // Validate the input
     $validated = $this->passInputThroughModuleValidation(true);
     // If validation passed and there are actual changes...
     if ($validated['message_bag'] === true && !ArrayLib::isDeepEmpty($validated['changes'])) {
         // Apply all changes
         \Photon\ModuleCreator::applyModuleChanges(\Input::get('module'), $validated['changes']);
         // Run migrations if needed
         if (\Input::has('run_migrations') && \Input::get('run_migrations', false)) {
             \Artisan::call('migrate');
         }
     }
 }