0

Today I started a new laravel Project but I can not set anything in the env and config files. It is a simple project to send emails but it ignores the env and config reading the php.ini instead.

First I was using artisan serve, cleaning cache and stuff. After hours trying I start to use apache24. But even I having setting the values on both files it remains ignoiring that and using values from php.ini.

What makes me think it might not be a laravel issue, but PHP.

Has anyone else gone through this?

Jeú Casulo
  • 139
  • 2
  • 11

1 Answers1

1

The configuration of php.ini and .env are entirely different and serve different purposes. php.ini is designed to configure PHP itself where .env loads environment variables that are used by Laravel for its configuration.

If you are trying to set PHP configuration in .env then of course it is not going to do anything.

Dwight
  • 12,120
  • 6
  • 51
  • 64