ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
【install composer】: [https://getcomposer.org/download/](https://getcomposer.org/download/) 【Laravel website】 [https://laravel.com/](https://laravel.com/) 【Install the specified version of laravel under the selected folder】: `composer create-project laravel/laravel=5.5.* --prefer-dist filename` Or download the latest version: `composer create-project laravel/laravel --prefer-dist filename` <br/> 【Too long field problem】 When run `php artisan migrate`,Will prompt the data table field is not long enough, this time you need to in the this location`app\Providers\AppServiceProvider.php`, add the following code: ~~~ use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); } ~~~ That is, the file can be like this: ~~~ <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { Schema::defaultStringLength(191); } /** * Register any application services. * * @return void */ public function register() { // } } ~~~ At this time, you can do the database migration normally: `php artisan migrate` Generate a preset data table, indicating that Laravel has connected to MySQL and can officially start development! <br/> 【See laravel version】: `php artisan --version`