laravel5.8的使用
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                laravel5.8的使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                首先,確定電腦已經安裝了composer。最好是全局安裝
然后打開phpstorm的控制臺:
composer create-project --prefer-dist laravel/laravel blog另外一種方式步驟多。然后中間配置的地方又多,不推薦。
 artisan 在Laravel根目錄下運行: PHP artisan list可查看所有命令列表。
下面列舉部分比較常用的命令:
啟用維護模式:php artisan down --message='Upgrading Database' --retry=60
關閉維護模式:php artisan up
生成路由緩存:php artisan route:cache
清除路由緩存:php artisan route:clear
數據庫遷移 Migrations:php artisan make:migration create_users_table --create=users
創建資源控制器:php artisan make:controller PhotoController --resource --model=Photo
創建模型及遷移:php artisan make:model User -m
生成控制器文件 php artisan make:controller? MemberController
? ?
 
轉載于:https://www.cnblogs.com/cici1989/p/10595016.html
總結
以上是生活随笔為你收集整理的laravel5.8的使用的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: Python-接口自动化(二)
 - 下一篇: 316不锈钢管多少钱一吨