A full-featured multi-tenant app with Laravel Part 6 — User Profile

Ashok Gelal
5 min readMay 10, 2018
“Silhouette of a woman standing alone at sunset” by Maranatha Pizarras

Part 0, Part 1, Part 2, Part3, Part4, Part 5, Part 6 👇, Part 7

In this part we’ll accomplish the following tasks:

✅ Make necessary UI changes

✅ Add and register a tenant’s accounts related routes

✅ Show a user’s profile and allow her to update her profile

✅ Add tests for profile view and profile update

A multi-tenant app is complex by nature to begin with and the complexity is only going to get bigger as your app matures. If you don’t make rules about the organization of your project in the beginning, your app will be hard to maintain and scale in no time.

This part of the multi-tenant series is really easy and may look not that important or deep. But since this is the first time we have really started digging into a tenant, we’ll make few fundamental changes to make it easy to add more functionalities and automated tests in future.

Among other things, I’ll show you how to organize your tenant related classes, how to break your routes, as well as how to add some core methods to your tests so that you can start adding even more automated tests to your to-be-complex app.

Skip this part only if you don’t care about…

--

--

Ashok Gelal

Learner. Achiever. Loves writing clean code and craft beautiful products. 👉 https://alpas.dev