1use Illuminate\Support\Facades\Schema;
2
3public function boot()
4{
5 Schema::defaultStringLength(191);
6}
7
1// Update your /app/Providers/AppServiceProvider.php to contain:
2
3use Illuminate\Support\Facades\Schema;
4
5public function boot()
6{
7 Schema::defaultStringLength(191);
8}
9
10//ON this error
11// PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists")
12// After run -> php artisan migrate:fresh <- ! Note this will reset all tables in db
1use Illuminate\Support\Facades\Schema;
2
3/**
4 * Bootstrap any application services.
5 *
6 * @return void
7 */
8public function boot()
9{
10 Schema::defaultStringLength(191);
11}
12