use($newtableschema)を使用できます 変数をclosureに渡します :
Schema::create($newtableschema['tablename'], function($table) use($newtableschema) {
// So now you can access the $newtableschema variable here
// Rest of your code...
});
use($newtableschema)を使用できます 変数をclosureに渡します :
Schema::create($newtableschema['tablename'], function($table) use($newtableschema) {
// So now you can access the $newtableschema variable here
// Rest of your code...
});