composer require barryvdh/laravel-ide-helper
composer require doctrine/dbal
config/app.php provides加入
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
composer.json
"scripts":{
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan optimize"
]
},
php artisan ide-helper:generate
php artisan ide-helper:models
php artisan ide-helper:meta
1 composer create-project laravel/laravel xxx
2
php artisan make:auth
vi .env database info
3 php artisan migrate
blade.php 文件中不要用<?php ?>