.env vs database.php in Laravel

In Laravel, 1- .env file will used for configure specific environment related variable especially secure variable which should not be shared or disclosed in the project code.2- database.php used for configure variable which have common setting not specific to environment related.Laravel always give first priority to .env then database.php file.