Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mr.jessop's avatar

Laravel Scout, Lumen application gives [ErrorException] Missing argument 1 for Illuminate\Support\Manager::createDriver()

When deploying lumen application with codeship I get an error

[ErrorException]                                                             
  Missing argument 1 for Illuminate\Support\Manager::createDriver(), called i  
  n /home/rof/src/bitbucket.org/rakkle/rakkleapi/vendor/illuminate/support/Ma  
  nager.php on line 88 and defined  

It comes when the deployment runs the seeder class for the eloquent model associated.

I don't get this error on my local machine. In the bootstrap/app.php I have added

$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
$app->configure('scout');

$app->register(Laravel\Scout\ScoutServiceProvider::class);
$app->register(ScoutEngines\Elasticsearch\ElasticsearchProvider::class);

Yes I am using a custom scout engine, which works perfect on my machine.

I have come to a point where I know it's laravel/scout package giving the problem because when I remove the Searchable trait from the eloquent class that's giving the problem, the deploy run successfully.

I would like some insight and some direction in solving this issue.

Thanks

0 likes
0 replies

Please or to participate in this conversation.