💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
【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`