Laravel missing composer.json
<p>I've pulled a client's project from FTP and web has structure as follows:</p>

<ul>
<li>error_docs</li>
<li>httpdocs (where laravel files are stored)</li>
<li>logs</li>
</ul>

<p>So I've pulled files inside httpdocs to a folder and updated the <code>homestead.yaml</code> and <code>hosts</code> file accordingly, and everything works fine, like it does on the website.</p>

<p>The problem I'm facing is that the folder structure is somehow different from what I'm used to on Laravel, and <code>composer.json</code> is missing, which as a side-effect has that I can't for example create new controllers.</p>

<pre><code>[ErrorException]
file_get_contents(/home/vagrant/Code/my_project/composer.json): failed to open stream: No such file or directory
</code></pre>

<p>If I create one manually, I can't make a <code>composer update</code> or something similar, so the controller never gets registered in the project, and is as if I've never created it.</p>

<p>I tried running a <code>composer init</code> and then <code>composer update</code> which results in removal of all dependencies, and crashing the project.</p>

<p>Does anyone know how can I resolve the issue?</p>

<p>EDIT:</p>

<p>The project also has public folder empty, so I ended up mapping homestead.yaml like this:</p>

<pre><code>- map: project.dev
  to: /home/vagrant/Code/my_project 
</code></pre>

<p>EDIT2: </p>

<p>Just found out it's a bought template from a web...still no update</p>