U mag use($newtableschema)
. gebruiken om de variabele door te geven aan de closure
:
Schema::create($newtableschema['tablename'], function($table) use($newtableschema) {
// So now you can access the $newtableschema variable here
// Rest of your code...
});