Support the ongoing development of Laravel.io →
Database Eloquent Packages
Last updated 2 years ago.
0

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')

0

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 ?

0

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.

0

Thank you very much. It works.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

phpspider phpspider Joined 14 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.