First of all: thank you so much for laravel. been using the framework for almost ten years and love it.
tl;dr
do you think adding something like optional {{ $scaffolding }} to vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/migration.create.stub
could be a good idea?
I plan to write an addon which improves table creation for "often needed tables"
E.g. i'm pretty shure im not the only user who needs a migration which creates an "opengraphs" table, holding all the fields from ogp.me laravel package.
something like:
php artisan make:migration-scaffolded opengraphs with:path/to/configfile
(configfile holds information what fields to add to the migration stub)
i know, i could create my own stub and put it in my package. but i would prefer to give customization to the user.
and im aware that i could just put the whole migration inside my package, but i would prefer to give the user the opportunity to alter the migration (remove fields) before running it.
also im aware of stub customization (which would be my goto solution if you don't feel like adding the parameter)
of course im willing to add this myself, but before i start - i wanted to check how you feel about this.
having this single line im pretty shure i could do the rest in a package extending MigrationCreator.php
as im pretty new to OSS and not the best in describing my ideas: please let me know if you need more information about my idea.
First of all: thank you so much for laravel. been using the framework for almost ten years and love it.
tl;dr do you think adding something like optional
{{ $scaffolding }}
tovendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/migration.create.stub
could be a good idea?I plan to write an addon which improves table creation for "often needed tables" E.g. i'm pretty shure im not the only user who needs a migration which creates an "opengraphs" table, holding all the fields from ogp.me laravel package.
something like:
php artisan make:migration-scaffolded opengraphs with:path/to/configfile
(configfile holds information what fields to add to the migration stub)creates something like:
of course im willing to add this myself, but before i start - i wanted to check how you feel about this.
having this single line im pretty shure i could do the rest in a package extending
MigrationCreator.php
as im pretty new to OSS and not the best in describing my ideas: please let me know if you need more information about my idea.
best & thanks! alex