Masonite 1.5 to 1.6


Not much has changed in the actual project structure of Masonite 1.6 so we just need to make some minor changes to our existing 1.5 project


We just have to change our Masonite dependency version in this file:



Masonite 1.6 now wraps the majority of the application in a try and catch block so we can add exception handling such as the new debug view and other exception features down the road such as Sentry and other error logging.

In the middle of the file (line 45 if you have not made changes to this file) we can simply wrap the application:

    for provider in container.make('Application').PROVIDERS:
        located_provider = locate(provider)().load_app(container)
        if located_provider.wsgi is True:
except Exception as e:

This will also display an exception view whenever an exception is it.


That's all the changes we have to make for our project.

Read What's New in Masonite 1.6 for any futher changes you may want or have to make to your code base.

Last updated