當前開發環境
Laravel 8
Win10
VScode、phpstorm
session
將.env
的APP_NAME
改為你的app名稱(不要叫laravel都好)
參考
定義與其他model的關係
定義可被呼叫的成員變數:getCanOrderAttribute
redirect()
新增table
對已有的table操作
若有可以匯入的fake data
可能會出現這錯誤
symlink () has been disabled for security reasons
在php.ini
的disable_functions
找到symlink
將它刪除後重啟php
再次執行
修改config/app.php
'timezone' => 'Asia/Taipie'
執行下列三個指令
php artisan cache:clear
php artisan config:clear
php artisan route:clear
完成
安裝 Laravel/ui
使用 Laravel/ui 安裝 bootstrap
若需要直接使用到auth的畫面則
之後執行
在畫面引入
修改Models\User.php
和修改app\Actions\Fortify\CreateNewUser.php
通常清空完會搭配
php artisan migrate
重新建置起資料表
清除資料並使用seeder
php artisan optimize:clear
php artisan config:clear
php artisan view:clear
php artisan cache:clear
php artisan route:cache
php artisan config:cache
缺fileinfo、以及刪除被關閉的function(putenv、proc_open)
被關閉的function
這裡找被關閉的function 刪掉即可
fileinfo
在nginx這個index index.php index.html index.htm default.php default.htm default.html;
的下面加上
https://hosomikai.medium.com/laravel-使用swagger-產出api文件-2f2a934c3b25