title: I am following Laminas MVC tutorial, Routs I created return 404 error instead of the relevant view
body: <p>I'm following the laminas MVC tutorial on official website. I have followed all the steps as said. but my Album routes return 404 error.
  I made the autoload entry and ran composer dump-autoload command as well.
  paths that gives 404 are.</p>
  <pre><code>http://lamin.test/album
  http://lamin.test/album/index
  http://lamin.test/album/add
  http://lamin.test/album/edit
  http://lamin.test/album/delete
  </code></pre>
  <p>following are my configuration files.</p>
  <p>config/modules.config.php</p>
  <pre><code>&lt;?php
  
  return [
      'Laminas\Form',
      'Laminas\I18n',
      'Laminas\InputFilter',
      'Laminas\Filter',
      'Laminas\Hydrator',
      'Laminas\Db',
      'Laminas\Router',
      'Laminas\Validator',
      'Application',
      'Album',
  ];
  </code></pre>
  <p>module/Album/config/module.config.php</p>
  <pre><code>namespace Album;
  
  use Album\Controller\AlbumController;
  use Laminas\Router\Http\Segment;
  use Laminas\ServiceManager\Factory\InvokableFactory;
  
  return [
      'router' =&gt; [
          'routes' =&gt; [
              'album' =&gt; [
                  'type' =&gt; Segment::class,
                  'options' =&gt; [
                      'route' =&gt; '/album[/:action[/:id]]',
                      'constraints' =&gt; [
                          'action' =&gt; '[a-zA-Z][a-zA-Z0-9]*',
                          'id' =&gt; '[0-9]+',
                      ],
                      'defaults' =&gt; [
                          'controller' =&gt; AlbumController::class,
                          'action' =&gt; 'index',
                      ],
                  ],
              ],
          ],
      ],
      'controllers' =&gt; [
          'factories' =&gt; [
              AlbumController::class =&gt; InvokableFactory::class,
          ],
      ],
      'view_manager' =&gt; [
          'template_path_stack' =&gt; [
               __DIR__ . '/../view',
          ],
      ],
  ];
  </code></pre>
  <p>module/src/module.php</p>
  <pre><code>&lt;?php
  namespace Album;
  
  use Album\Controller\AlbumController;
  use Laminas\ModuleManager\Feature\ConfigProviderInterface;
  
  class Module implements ConfigProviderInterface
  {
      public function getConfig() : array
      {
          return include __DIR__.'/../config/module.config.php';
      }
  }
  </code></pre>
  <p>module/Album/src/Controller/AlbumController.php</p>
  <pre><code>&lt;?php
  
  
  namespace Album\Controller;
  
  use Laminas\View\Model\ViewModel;
  use Laminas\Mvc\Controller\AbstractActionController;
  
  
  class AlbumController extends AbstractActionController
  {
      public function indexAction()
      {
          return new ViewModel();
      }
  
      public function addAction()
      {
          return new ViewModel();
      }
  
      public function editAction()
      {
          return new ViewModel();
      }
  
      public function deleteAction()
      {
          return new ViewModel();
      }
  }
  </code></pre>
  <p>the view paths are as follows</p>
  <pre><code> module
    |-Album
      |-view
       |-album
        |-album
         |index.phtml
         |add.phtml
         |edit.phtml
         |delete.phtml
  </code></pre>
  <p>I am running Homestead setup on vagrant VM. Application module paths works fine only my Album module paths returns the 404 error page.</p>