|
1.首先要到 composer.json 修改- "require": {
- "laravelcollective/html": "5.3.*"
- }
複製代碼
2.然後打開 cmd 更新元件庫
3.最後到 config/app.php 註冊服務 - 'providers' => [
- // ...
- Collective\Html\HtmlServiceProvider::class,
- // ...
- ],
複製代碼
- 'aliases' => [
- // ...
- 'Form' => Collective\Html\FormFacade::class,
- 'Html' => Collective\Html\HtmlFacade::class,
- // ...
- ],
複製代碼
接下來就可以在php甚至是view使用這個元件『Form::function()』囉!
|
|