Laravel命令手冊
2023-08-16 09:43 欄目: 技術學堂 查看()
Available commands:
命令 | 中文 | English |
---|
clear-compiled | 删除已編譯的類文件 | Remove the compiled class file |
down | 将應用程序置于維護模式 | Put the application into maintenance mode |
dump-server | 啓動轉儲服務器以收集轉儲信息。 | Start the dump server to collect dump information. |
env | 顯示當前的框架環境 | Display the current framework environment |
help | 顯示命令的幫助 | Displays help for a command |
inspire | --- | Display an inspiring quote |
list | 列出命令 | Lists commands |
migrate | 運行數據庫遷移 | Run the database migrations |
optimize | 緩存框架引導程序文件 | Cache the framework bootstrap files |
preset | 爲應用程序交換前端腳手架 | Swap the front-end scaffolding for the application |
serve | 在PHP開發服務器上提供應用程序 | Serve the application on the PHP development server |
tinker | 與您的應用程序互動 | Interact with your application |
up | 使應用程序退出維護模式 | Bring the application out of maintenance mode |
app
命令 | 中文 | English |
---|
app:name | 設置應用程序命名空間 | Set the application namespace |
auth
命令 | 中文 | English |
---|
auth:clear-resets | 刷新過期的密碼重置令牌 | Flush expired password reset tokens |
cache
命令 | 中文 | English |
---|
cache:clear | 刷新應用程序緩存 | Flush the application cache |
cache:forget | 從緩存中删除項目 | Remove an item from the cache |
cache:table | 爲緩存數據庫表創建遷移 | Create a migration for the cache database table |
config
命令 | 中文 | English |
---|
config:cache | 創建緩存文件以加快配置速度 | Create a cache file for faster configuration loading |
config:clear | 删除配置緩存文件 | Remove the configuration cache file |
db
命令 | 中文 | English |
---|
db:seed | 填充數據庫 | Seed the database with records |
event
命令 | 中文 | English |
---|
event:generate | 根據注冊生成缺少的事件和偵聽(tīng)器 | Generate the missing events and listeners based on registration |
key
命令 | 中文 | English |
---|
key:generate | 生成應用程序key | Set the application key |
lang
命令 | 中文 | English |
---|
lang:publish | 将語言文件發布到資源目錄 | publish language files to resources directory. |
make
命令 | 中文 | English |
---|
make:auth | --- | Scaffold basic login and registration views and routes |
make:channel | 創建一個新的 channel 類 | Create a new channel class |
make:command | 創建一個新的 Artisan 命令 | Create a new Artisan command |
make:controller | 創建一個新的控制器類 | Create a new controller class |
make:event | --- | 創建一個新的 event 類 |
make:exception | 創建一個新的自定義異常類 | Create a new custom exception class |
make:factory | 創建一個新的模型工廠 | Create a new model factory |
make:job | 創建一個新的工作類 | Create a new job class |
make:listener | 創建一個新的事件監聽(tīng)器類 | Create a new event listener class |
make:mail | 創建一個新的電子郵件類 | Create a new email class |
make:middleware | 創建一個新的中間件類 | Create a new middleware class |
make:migration | 創建一個新的遷移文件 | Create a new migration file |
make:model | 創建一個新的Eloquent模型類 | Create a new Eloquent model class |
make:notification | 創建一個新的通知(zhī)類 | Create a new notification class |
make:observer | 創建一個新的觀察者類 | Create a new observer class |
make:policy | 創建一個新的策略類 | Create a new policy class |
make:provider | 創建一個新的服務提供者類 | Create a new service provider class |
make:request | 創建一個新的表單請求類 | Create a new form request class |
make:resource | 創建一個新資源 | Create a new resource |
make:rule | 創建新的驗證規則 | Create a new validation rule |
make:scaffold | 代碼生成器 —— Laravel 5.x Scaffold Generator | Create a laralib scaffold |
make:seeder | 創建一個新的 seeder 類 | Create a new seeder class |
make:test | 創建一個新的測試類 | Create a new test class |
migrate
命令 | 中文 | English |
---|
migrate:fresh | 删除所有表并重新運行所有遷移 | Drop all tables and re-run all migrations |
migrate:install | 創建遷移存儲庫 | Create the migration repository |
migrate:refresh | 重置并重新運行所有遷移 | Reset and re-run all migrations |
migrate:reset | 回滾所有數據庫遷移 | Rollback all database migrations |
migrate:rollback | 回滾上次數據庫遷移 | Rollback the last database migration |
migrate:status | 顯示每次遷移的狀态 | Show the status of each migration |
notifications
命令 | 中文 | English |
---|
notifications:table | 爲通知(zhī)表創建遷移 | Create a migration for the notifications table |
optimize
命令 | 中文 | English |
---|
optimize:clear | 删除緩存的引導程序文件 | Remove the cached bootstrap files |
package
命令 | 中文 | English |
---|
package:discover | 重建緩存的包清單 | Rebuild the cached package manifest |
queue
命令 | 中文 | English |
---|
queue:failed | 列出所有 failed 隊列工作 | List all of the failed queue jobs |
queue:failed-table | 爲 failed 隊列工作數據庫表創建遷移 | Create a migration for the failed queue jobs database table |
queue:flush | 刷新所有failed 隊列工作 | Flush all of the failed queue jobs |
queue:forget | 删除failed 隊列工作 | Delete a failed queue job |
queue:listen | 監聽(tīng)一個給定的隊列 | Listen to a given queue |
queue:restart | 在當前工作之後重新啓動隊列工作器守護程序 | Restart queue worker daemons after their current job |
queue:retry | 重試failed 隊列作業 | Retry a failed queue job |
queue:table | 爲隊列工作數據庫表創建遷移 | Create a migration for the queue jobs database table |
queue:work | 開始将隊列上的工作作爲守護程序處理 | Start processing jobs on the queue as a daemon |
route
命令 | 中文 | English |
---|
route:cache | 創建路由緩存文件以加快路由注冊速度 | Create a route cache file for faster route registration |
route:clear | 删除路由緩存文件 | Remove the route cache file |
route:list | 列出所有注冊的路由 | List all registered routes |
schedule
命令 | 中文 | English |
---|
schedule:run | 運行預定的命令 | Run the scheduled commands |
session
命令 | 中文 | English |
---|
session:table | 爲會話(huà)數據庫表創建遷移 | Create a migration for the session database table |
storage
命令 | 中文 | English |
---|
storage:link | 創建從“公共/存儲”到“存儲/應用/公共”的符号鏈接 | Create a symbolic link from "public/storage" to "storage/app/public" |
vendor
命令 | 中文 | English |
---|
vendor:publish | 從供應商包中發布任何可發布的資産 | Publish any publishable assets from vendor packages |
view
命令 | 中文 | English |
---|
view:cache | 編譯所有應用程序的Blade模闆 | Compile all of the application's Blade templates |
view:clear | 清除所有編譯的視圖文件 | Clear all compiled view files |
鄭重申明: 部分信息來源于網絡,收集的目的隻是(shì)爲了更好的技術學習。如侵權,聯系我們,給予删除。