技术碎片
技术记录
帮助交流
安装Laravel8 Jetstream各类问题处理

此类错误 创建提示错误的数据库即可

此类错误需要添加内容
路径为:\project-name\app\Providers\AppServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
Schema::defaultStringLength(191); //Solved by increasing StringLength
}
}
安装laravel jetstream方法
方法一:
使用laravel命令安装
laravel new project-name --jet
php artisan migrate
npm install && npm run dev
方法二:
使用composer命令安装
composer require laravel/jetstream
php artisan jetstream:install livewire
npm install && npm run dev
php artisan migrate
如有疑问或者交流问题请加:QQ 2137087126
转载请注明来源地址:www.zhyunxuan.com>
更新时间 2023-02-01
 2030
梦想有多远,路就有多远