I am working on a laravel project and we have separate settings for database.php in local and on server and I want to ignore this file but when I am adding this line in gitignore database.php still shows in git status
/config/database.php
I also tried
config/database.php
but does not work so any assistance will be appreciated.