For example, tokens and keys for accessing social media APIs, which can be used in several places in the application. Where is the best place to store them?
I think it's best to have a separate file, let's say constants.php put it in the config folder . After that, you can access it from anywhere config('constants.twitter_api_key') .