title: When does map method initiate in laravel service provider?
body: <p>I'm trying to dig deeper into laravel framework, this time I'm developing a big application so I decided to do it in a modular way. Currently i'm using <a href="https://github.com/nWidart/laravel-modules" rel="nofollow noreferrer">Laravel Modules</a> package which provides Service providers for my own modules. I realise that it acts as a gateway to register the views, routes, etc.</p>
  
  <p>However I can't really find when do the <strong>map</strong> function is called in laravel lifecycle. I tried to go to the <code>parent::boot();</code> function but it does not initiate the method as well.</p>
  
  <pre><code>    public function map()
      {
          $this-&gt;mapApiRoutes();
  
          $this-&gt;mapWebRoutes();
      }
  </code></pre>
  
  <p>I want to make sure that when I develop my modules, the routes are registered in my app. However I can't even find the lifecycle in the main app, can anyone help?</p>