Email send time use email template on database

1.0.3 2021-09-15 07:42 UTC

This package is auto-updated.

Last update: 2021-09-20 10:28:34 UTC


Issues License

For migrate File : php artisan migrate --path=vendor/abhishek-laravel/email-template/src/database/migrations

Configuration of Queue Now, we are setup configuration on queue driver so first of all, we will set queue driver "database". You can set as you want also we will define driver as redis too. So here define database driver on .env file.

QUEUE_CONNECTION=database After that we need to generate migration and create tables for queue. So let's run below command for queue database tables.

php artisan queue:table Now, run migration in your terminal.

php artisan migrate

URL : https://websolutionstuff.com/post/how-to-send-e-mail-using-queue-in-laravel-7-8

Error Solution :

1> SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table jobs add index jobs_queue_index(queue))

A temporary solution would be going to your config/database.php and change the charset and collation from utf8mb4 to utf8

'charset' => 'utf8', 'collation' => 'utf8_unicode_ci',