Level 1
Fixed it: https://laravel-news.com/laravel-5-4-key-too-long-error
Issue with MySQL 5.6.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've setup a new Laravel Spark instance and haven't changed anything about it, it's exactly like it is out of the box. I'm trying to register a new account and I'm getting the following error:
Something went wrong. Please try again or contact customer support.
When I run php artisan migrate I'm getting the following errors in Terminal:
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 b
ytes (SQL: alter table `announcements` add primary key `announcements_id_primary`(`id`))
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 b
ytes
Where am I going wrong?
Fixed it: https://laravel-news.com/laravel-5-4-key-too-long-error
Issue with MySQL 5.6.
Please or to participate in this conversation.