0

Is there any way to use Laravel's Schema Builder from the command line? Right now I have it set up so that an admin panel is able to rebuild tables, but is there some way to build schemas from the command?

I think a better question would be, how would I require_once the autoloader so I can simply

php myschema.php
4

1 に答える 1

2

移行を作成するか、それを処理する職人のタスクを作成できます。詳細については、それぞれのリンクにあるドキュメントを参照してください。どちらの場合でも、スキーマを使用して、php artisan migrateまたはphp artisan task作成したものに応じて、コマンドラインから Laravel を呼び出すことができます。

于 2013-02-26T04:43:05.143 に答える