From version 5.4 Laravel used for a default database character – utf8mb4. This charset includes support for storing emojis.
If you are running MySQL v5.7.7 or greater you don`t have his problem, but if you used MariaDB before version 10.2.3 or older versions of MySQL you may hit this error when trying to run migrations:
[Illuminate\Database\QueryException] SQLSTATE: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
How to fix this?
All you have to do is edit your AppServiceProvider.php file and, inside the boot method set a default string length:
public function boot()
Beautiful things are created, bad things simply happen.
Success is how high you bounce when you hit bottom.
n this Bootstrap 3 tutorial, we will be adding the sidebar to the article page which will show recent posts, popular posts, etc.
When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy’. They told me I didn’t understand the assignment, and I told them they didn’t understand life.
Creating a popup modal which can display text, images, videos or any other HTML elements.