Laravel Lighthouse Config - unable to locate publishable resources

Viewed 2024

I have installed the latest version of Lighthouse into my Laravel 7 app and it's been working fine with the out-of-the-box config. I now want to tweak some settings for better security, so as per the docs I have tried to use the following command:

php artisan vendor:publish --tag=lighthouse-config

to publish the config file. But I get the following error:

Unable to locate publishable resources.
Publishing complete.

No lighthouse.php file is published to the config folder. Any ideas how to fix this?

2 Answers

Just tried it in an example project and it worked just fine.

A simple workaround is to run:

cp vendor/nuwave/lighthouse/src/lighthouse.php config/lighthouse.php

Laravel 8 Lighthouse Config:

just run php artisan vendor:publish and choose the class that you want to publish.

it's work for me on Laravel 8 enter image description here

Related