1071 Specified key was too long error in Laravel

1071 Specified key was too long Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything. For those running MariaDB or older versions of MySQL you may hit this error when trying to run migrations: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter tabl e users ... Read more

Gmail configuration setup to send mail in Laravel

Gmail configuration setup  to send mail Many junior laravel developers don’t know what is gmail configuration setup in laravel. If you are working with laravel and you need to setup gmail configuration for sending email in laravel. if you want to set configuration of gmail then first go to mail.php file, you are work on laravel  4 and laravel 5 it’s not issue, because you can set common setting for both version of laravel framework . Mail.php setup gmail configuration     'driver' => smtp,     'host'... Read more

SMTP server doesn't work to send email in laravel

Gmail SMTP server for sending email in Laravel Are you looking for using Gmail SMTP server for sending email in Laravel? Sometimes SMTP server does not work deu to some server settings or configurations problem. To solve this problem now i am going to show you how to send email via SMTP server in laravel. One more benefit of using SMTP server is , you can send email from your local server also. By this way it will helpful for us to test email functionality on local server itself. It is better to know that laravel use Config/mail.php file to store details related to sending emails. Th... Read more

Easy way to integrate paypal payment gateway in laravel

Integrate PayPal payment gateway If you are operative in the e-commerce circuit, then you must have known the importance of online transaction. As it is the most viable and fastest way to settle payments anywhere in the world. And because of evolving internet technology, today anyone can easily buy or sell products and can settle payments with online transaction all around the world. But online transaction brings high risks of serious security threats also. Therefore robust security mechanism for online payments is required to avoid potential malicious attempts. That is where the importa... Read more

How to send an email using mailable in laravel

How to send an email Today, i am going to tell you how to send simple email with gmail smtp configuration using laravel mailable class. We can send email using many procedure in laravel . But today we are going to learn how to send an email via mailable class in laravel . It is very simple and easy. you have to just follow few step to do it . So let’s start our tutorial.  Mail Configuration Go to your .env file and open it. Setup configuration like this .  MAIL_DRIVER = smtp MAIL_HOST = MAIL_PORT = 587 MAIL_USERNAME = your gmail MAIL_PASSWO... Read more

LET'S SOCIALITE - passive income

Recent Tweets