web/app/Providers/AppServiceProvider.php

29 lines
716 B
PHP
Raw Normal View History

2023-07-23 01:14:14 +03:00
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Schema;
2023-07-23 01:14:14 +03:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// WARNING: This is a workaround for the old MySQL version currently used by the project.
// This might have unintended consequences.
// https://stackoverflow.com/questions/42244541/laravel-migration-error-syntax-error-or-access-violation-1071-specified-key-wa
Schema::defaultStringLength(191);
2023-07-23 01:14:14 +03:00
}
}