You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to switch from QUEUE_CONNECTION=async to QUEUE_CONNECTION=database, following instructions under "Message Sending & Queues" header on configuration & setup page.
I encounter an error at this step:
To use the database driver, you must first set the QUEUE_CONNECTION to database in your .env file. You also need to run the following commands, which will create a new jobs table in your database, which that will be used to manage the queue.
php artisan queue:table
See below the error:
cd ~/path/to/sendportal
php artisan queue:table
ErrorException
file_put_contents(/Users/me/path/to/sendportal/database/migrations/2020_06_16_211244_create_jobs_table.php): failed to open stream: No such file or directory
at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:135
131| * @return int|bool
132| */
133| public function put($path, $contents, $lock = false)
134| {
> 135| return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
136| }
137|
138| /**
139| * Write the contents of a file, replacing it atomically if it already exists.
+18 vendor frames
19 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
The problem appears to be that the database/migrations directory doesn't exist. Running mkdir database/migrations and re-running command seems to fix this for me:
$ mkdir database/migrations
$ php artisan queue:table
Migration created successfully!
The text was updated successfully, but these errors were encountered:
I'm trying to switch from
QUEUE_CONNECTION=async
toQUEUE_CONNECTION=database
, following instructions under "Message Sending & Queues" header on configuration & setup page.I encounter an error at this step:
See below the error:
The problem appears to be that the
database/migrations
directory doesn't exist. Runningmkdir database/migrations
and re-running command seems to fix this for me:The text was updated successfully, but these errors were encountered: