orchestral / canvas

Code Generators for Laravel Applications and Packages
https://packagist.org/packages/orchestra/canvas
MIT License
187 stars 12 forks source link

Support anonymous classes when creating migration. #16

Closed abishekrsrikaanth closed 2 years ago

abishekrsrikaanth commented 2 years ago

Can you add support for anonymous classes when creating migration as described here https://laravel.com/docs/8.x/migrations#anonymous-migrations

crynobone commented 2 years ago

On 6.x, publish the stub and customize it.

abishekrsrikaanth commented 2 years ago

@crynobone Is there a canvas command to publish the stubs? Also, will these stubs remain in the package you are developing or is this something that can be setup globally?

crynobone commented 2 years ago

./vendor/bin/canvas stub:publish and it's per package.

abishekrsrikaanth commented 2 years ago

Thank you. Appreciate the help. Probably needs to be documented on the README file.