You can add it to your .env file, and access it like this:
env('YOUR_CUSTOM_FIELD')
Or, you can create your own config file, and do this:
config('your_custom_file.your_custom_field')
Thanks for the reply. env is i am not going to commit.
Where should i create config file. I mean is there any specific path like in app folder and is it accessible in migration folder or not ?
It goes in your config directory. You create a php file that just returns an array. Then you can access the specific keys using the config
helper function.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community