php artisan make:migration create_products_table
php artisan make:migration test_users_table --table=users
php artisan migrate:status
// 創建遷移表文件[會生成遷移文件,路徑位置:\database\migrations\,如果是第一次執行,也會生成migrations表]
php artisan make:migration create_test_table --create=test
// 創建表[會生成test表]
php artisan migrate
// 重命名表[會生成一個新的遷移文件,在up函數中,編寫:Schema::rename('test','tests');]
php artisan make:migration rename_test_to_tests --table test
// 刪除表[dropIfExists 函數就是用來刪除表]
php artisan migrate:rollback
// tests表中增加字段
php artisan make:migration add_avatar_into_test
php artisan migrate
// 生成填充文件
php artisan make:seeder TestsTableSeeder
// 執行填充
php artisan db:seed
php artisan db:seed --class=TestsTableSeeder
php artisan make:seed TestsTableSeeder
- Laravel5.5總結
- 項目管理
- Manager
- Vip專屬鏈接管理
- Api
- Vip專屬鏈接管理(Api)
- php artisan route:list 路由顯示不全
- 數據遷移和填充
- Laravel5.5事件監聽機制(注冊-監聽-任務調度)
- 章節1:未啟用任務調度
- 章節2:啟用任務調度
- 使用記錄
- 數據遷移使用記錄
- 安裝laravel5.5日志觀察器
- Laravel5.5消息隊列(rabbitmq)
- 1:laravel自帶消息隊列
- 2:RabbitMq隊列使用
- 第三方支付擴展:yansongda/laravel-pay
- 安裝指引
- 控制器內使用
- 分表查詢(mysql+mongo)
- 前端Vue按鈕導出問題
- 單元測試
- 模型使用
- laravel9數據填充
- laravel9子查詢