Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the config filesystem in lumen?

Tags:

lumen

I wanted to configure the filesystem path in lumen, and lumen not providing the config folder set the filesystem local path how can I do it?

like image 568
Firoz Tennali Avatar asked Dec 06 '25 18:12

Firoz Tennali


1 Answers

Put the following in your bootstrap/app.php before you register the service providers:

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

You can also do this for other variables like path.storage or path.public.

This is set in Laravel by default, but not done in Lumen. Therefore you need to add this yourself to the bootstrap process.

like image 50
Sven Hakvoort Avatar answered Dec 09 '25 06:12

Sven Hakvoort



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!