Fix errors in getFiles function
Move laravel project to root folder