Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the best place to use ini_set in a Laravel application

What is the best place to run ini_set function (to set the whole application value in runtime) in the Laravel application?

edited:

The goal is to set bcmath.scale value, but eliminate the need for all project developers to touch php.ini in theirs local environments.

like image 697
Yuriy L. Avatar asked Sep 02 '25 09:09

Yuriy L.


1 Answers

You have to put it on the following path:

App\Providers\AppServiceProvider

on boot function

like image 57
Obayda Alesawi Avatar answered Sep 04 '25 23:09

Obayda Alesawi



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!