lumen框架导入数据异常
# php artisan make:migration create_table_cars --create=cars
# php a'r'tisan migrate
出现此状况:
解决方案:
直接编辑:/Applications/MAMP/htdocs/lu/vendor/laravel/lumen-framework/config/database.php
//'host' => env('DB_HOST', 'localhost'), 'host' => env('DB_HOST', 'localhost') . ('homestead' == gethostname() ? null : ':3306'),
最后执行:
# php artisan migrate
拼搏在路上