Recently I added my hostname to use a local configuration on Laravel 4.2, then I added a copy of my database.php file and put into app/config/local/database.php. But when I try to do a migration o a composer update an error comes up:
PHP Parse error: syntax error, unexpected 'return' (T_RETURN) in /app/config/local/database.php on line 3
In line 3 of this file there is indeed a return:
<?php
return array(
...
So I tried to put back the file in the app/config folder and got the same error.
Finally, I used the database.php file of one of my coworkers and still the same error.
database.phpfile, here's a link to this file on the Laravel GitHub project.