Syntax error or access violation: 1071 Specified key was too long

Syntax error or access violation: 1071 Specified key was too long

Error come while migrate command run on laravel SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table users add unique users_email_unique(email)) Solution Go to file: /app/Providers/AppServiceProvider.php and import schema namespace use Illuminate\Support\Facades\Schema; Add below line under boot() function…
JWT - lcobucci/jwt 4.2.1 requires ext-sodium- PHP 7.4 - WAMP

JWT – lcobucci/jwt 4.2.1 requires ext-sodium- PHP 7.4 – WAMP

Error occurred when install composer on Laravel project with PHP version 7.4 Solution: Go to PHP.INI file at location wamp64\bin\php\php7.4.32 and edit with any editor Find extension name: sodium and enable it by remove semicolon in front of that Restart All services on Wamp server. After restart open new command…

Email issue – Connection could not be established with host

Problem: While send email it show Connection could not be established with host "ssl://email-smtp.us-east-1.amazonaws.com:587": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:0A00010B:SSL routines::wrong version number Solution: Change Port number to 465 instead of 587 If you are using LARAVAL you can do this in .env file Instead of…