rainlab/builder-plugin

Creating a migration: creates an error unexpected syntax

Closed this issue · 2 comments

After creating a new plugin, then trying to create a new migration. After clicking save and close, a modal pops up and shows the following error:

syntax error, unexpected '<', expecting function (T_FUNCTION) or const (T_CONST)" on line 8 of /var/www/html/...

  • Plugin is created
  • But migration is not made, no table found on MySql

This is the migration code that your plugin created:
public function up() { Schema::create('solas_testplugin_', function($table) { $table->engine = 'InnoDB'; $table->increments('id'); }); } public function down() { Schema::dropIfExists('solas_testplugin_'); }

I found the error. Plugin does not work with wysiwyg specifically by Anand Patel. Hopefully you guys can override certain plugins; editors and such, when we are using your plugin.

Thanks for reporting back. Please make sure this information is given to Anand Patel