title: Laravel Lumen in Docker ClassLoader Exception
body: <p>I installed a fresh Lumen in my docker container. Next I wanted to use eloquent so I activated it and it worked with some tests.</p>
  <p>My problem now is if I want to get some Information about the model I've created, most of the times I get an error from the ClassLoader:</p>
  <p><strong>&quot;include(/var/www/html/app/Models/Group.php): Failed to open stream: No such file or directory&quot;</strong></p>
  <p>The file is obviously there, if I start the request again <strong>1-2 / 10 times</strong> it worked. Finds the class and loads all things.</p>
  <p>The Model itself has no special stuff in it, just an empty class.</p>
  <pre><code>&lt;?php
  
  namespace App\Models;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Group extends Model
  {
  }
  
  </code></pre>
  <p>In my controller I'm using the model like this:</p>
  <pre><code>&lt;?php
  
  use Illuminate\Http\JsonResponse;
  use Illuminate\Http\Request;
  use App\Models\Group;
  
  class TestController extends Controller
  {
      public function getGroups(Request $request): JsonResponse
      {
          return response()-&gt;json(['groups' =&gt; Group::all()]);
      }
  }
  </code></pre>
  <p>It looks like it has something to do with docker?</p>
  <p>Hope someone can help.</p>
  <p>Thanks in advance!</p>