Laravel Lighthouse Config - unable to locate publishable resources
Asked Answered
J

2

6

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?

Jaban answered 10/8, 2020 at 9:3 Comment(0)
J
7

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
Jaconet answered 11/8, 2020 at 6:22 Comment(1)
Yeah in the end i just copied it from the Github source. I didn't know if Laravel did some behind-the-scenes config-registering magic or something though.Jaban
G
1

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

Grasp answered 30/4, 2021 at 18:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.