Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using different config for seeds in Laravel

Tags:

laravel

When I seed my database, I would like to use the null BROADCAST_DRIVER. I tried setting the config var config('broadcasting.default', null); in DatabaseSeeder.php. However, the seeders are still using the driver defined in .env.

How do I use a different BROADCAST_DRIVER for my seeds?

like image 262
Fredrik Avatar asked Jan 23 '26 00:01

Fredrik


1 Answers

You're using the wrong syntax. Set it with:

config(['broadcasting.default' => 'null'])
like image 149
Alexey Mezenin Avatar answered Jan 25 '26 00:01

Alexey Mezenin