vormkracht10/laravel-mails

[Bug]: Mis-labelled config key for events table name in migration

Closed this issue · 2 comments

What happened?

php artisan migrate command fails due to missing table name for the events migration.

How to reproduce the bug

Import package migrations, run migrate command.

Package Version

dev-main

PHP Version

8.1

Laravel Version

10.0.0

Which operating systems does with happen with?

No response

Notes

In the create_mails_events_table.php.stub on line 11:

Schema::create(config('mails.table_names.mail_events'), function (Blueprint $table) {

needs to be changed to

Schema::create(config('mails.table_names.events'), function (Blueprint $table) {

to match the 'events' key in the config file.

Hi @RPillz, thanks for checking my package out! Currently it's still in active development, so no stable release yet. So this fix still needs to be done. Hope to release it by the end of this month!

Fixed!