.env & config in Laravel
Në shqip: Konfigurimi në Laravel
ShpjegimiSQ
Laravel-i i mban sekretet dhe cilësimet në skedarin .env (fjalëkalimi i databazës, APP_KEY), dhe kodi i lexon përmes config(). .env s'ngarkohet kurrë në Git — çdo server ka të vetin.
EnglishEN
Laravel keeps secrets and settings in the .env file (the database password, APP_KEY), and code reads them through config(). .env is never committed to Git — every server has its own.
Si ta mendosh
Si çelësat e shtëpisë që s'i varë te dera.
Lexoje në anglisht
Like house keys you don't hang on the door.
Shembull koditext
APP_ENV=local
DB_DATABASE=fjalori
DB_PASSWORD=sekret