Search code examples
laravellaravel-5laravel-5.4laravel-filesystem

How to change laravel paths?


I want to change Laravel project's paths (View, Lang, Controller, Model...etc), because my project uses these files from subdomains folders, but i dont know where to modify the framework.


Solution

  • You can try this way:

    1. Extend the base Application class Illuminate\Foundation\Application
    2. in your derived app class override all the path functions
    3. in bootstrap/app.php change this line to load your derived App class

      $app = new Illuminate\Foundation\Application(..
      $app = new MyApplication(..
      

    Cross your fingers.