是否有一個用于laravel的命令/包,可以簡化或自動完成簡單的Laravel遷移作業?
舉個例子。"php artisan migration:addfield --table: Posts --field: date_birth etc/parameters ..."
目標是簡化和自動化簡單的操作,例如對表進行小的修改。
這里有什么?
uj5u.com熱心網友回復:
你在尋找一個欄位來添加到現有的表格中嗎?那就用這個吧
php artisan make:migration add_date_of_birth_to_posts_table --table=posts
你可以不使用 --table 標簽直接提到表
php artisan make:migration add_date_of_birth_to_posts
uj5u.com熱心網友回復:
你可以使用這個包,它是由Jeffrey Way(Laracasts的所有者)創建的
https://github.com/laracasts/Laravel-5-Generators-Extended
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/307815.html
標籤:
