希夢耐康官網_軟件定制開發_高校網站建設_高校書(shū)院軟件系統建設_博達網站遷移

技術學堂

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生成應用程序keySet 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創建一個新的 channelCreate 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 GeneratorCreate a laralib scaffold
make:seeder創建一個新的 seederCreate 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-tablefailed 隊列工作數據庫表創建遷移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ì)爲了更好的技術學習。如侵權,聯系我們,給予删除。