orh / laravel-sdsl
Set laravel schema default string length.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/orh/laravel-sdsl
Requires
- laravel/framework: >=5.1
This package is auto-updated.
Last update: 2025-10-10 19:47:21 UTC
README
对于 Laravel 使用 MariaDB 或旧版本的 MySQL 时可能会遇到以下错误:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
安装
使用 composer 安装:
composer require orh/laravel-sdsl
Laravel < 5.5 则需要手动注册服务提供器
// config/app.php
'providers' => [
Orh\LaravelSdsl\ServiceProvider::class,
];
许可
MIT