php artisan optimize php artisan optimize –force Since Laravel 5.5 will be PHP 7.0+ it makes sense to remove this feature, since the best way to optimize performance in PHP 7 is just to correctly configure opcache to what’s best for your server and websites. 在php7已经废弃了!!!!
php artisan tinker //查看定义模型database/factories/ModelFactory.php factory(app\User::class, 10)->create(); //注意大小写 App\User::all();//查看记录 App\User::count(); 更多内容参考:https://yii.im/posts/tinker-with-the-data-in-your-laravel-apps-with-php-artisan-tinker/
php artisan config:cache 创建一个加载配置的缓存文件bootstrap/cache/config.php php artisan db:seed 迁移填充数据 php artisan migrate:refresh –seed 重新填充