Project
School of Permaculture: Accounts API for a Land Design Tool
The School of Permaculture's Design Suite helps students plan their own land step by step. I built its Laravel accounts backend: sign-up with email verification, token sign-in, profile and password tools, and a separate admin sign-in.
The School of Permaculture teaches people how to design their own land. This project was the account backend for an online design tool for its students: a "Design Suite" where a person sets up their property and works through it step by step.
The screens of the tool already existed as page designs. My part was the Laravel backend behind them: the accounts the tool's pages sign in with, email verification, the password tools, and a separate admin sign-in with its own dashboard.
What I built
- Accounts API: sign-up, sign-in, profile update with a photo, password change, password reset, sign-out and account deletion.
- Email verification: a one-time link sent at sign-up that confirms the address.
- Token sign-in: Laravel Sanctum tokens, so the tool's pages can call the API as the signed-in person.
- Admin side: its own accounts table, sign-in and dashboard.
How the Design Suite works
A property owner
The page designs show the path a student takes. The sidebar lists the steps of a permaculture design: Personal, Land, Analyze, Design, Budget, Install and Maintenance, next to a Tools tab.
The first screens set the project up:
- Choose a measurement unit: imperial or metric, so every later measurement uses the units the person thinks in.
- Find your property: type the property's location next to a map.
- Draw on it: a drawing area over the property where the person marks out zones with the mouse, then saves the drawing as a picture or clears it and starts again.
To keep their work, the person registers with their name, email, phone and password, and the address of the property: street, city, state, country and post code.
The admin team
The team signs in at its own address with a separate admin account, never with a student's account, and reaches the admin dashboard.
The accounts API
The users table holds the register screen's fields one for one: first and last name, email, phone, the address with city, state, country and post code, and the password, plus a profile picture. So the page and the database never disagree about what an account holds.
Sign-up. The email must be new. The password is stored as a bcrypt hash, never as text. The API creates a long random code and emails a verification link with it.
Verification. Opening the link finds the account by its code, marks the email as verified with the time, removes the code so the link works only once, and shows a confirmation page. An unknown or used code is refused.
Sign-in. A right email and password return a Sanctum token. Every account action after that needs the token: updating the profile, changing the password, signing out and deleting the account. Updating the profile also needs a verified email, and signing out deletes the account's tokens.
Profile picture. The page sends the picture as text-encoded image data. The API saves it as a file with a new name and removes the old picture, so replaced photos do not pile up on the server.
Password change. The current password has to match before the new one is saved.
Two kinds of accounts, kept apart
Students and the admin team live in different tables and use different sign-in guards in Laravel. The admin pages check the admin guard only, so a student account, however it signed in, never reaches the admin dashboard, and the public sign-up can never make an admin.
I started the admin side from the admin layout of an earlier Laravel project of mine, with its sign-in and dashboard, rather than building that shell again.
What I took from this project
A small backend is still worth getting right. Matching the database to the screens, sending a verification link that works once, and keeping students and staff on separate sign-ins took little code, and gave the design tool a sound place to grow from.
Tools used
| Area | Tools |
|---|---|
| Backend | Laravel, PHP, MySQL |
| Accounts | Laravel Sanctum tokens, Laravel Breeze, bcrypt password hashes |
| Laravel Mail for verification and password emails | |
| Admin | A separate admin guard, Blade templates, Bootstrap |
| Page designs | HTML, Bootstrap, jQuery, a canvas drawing area over a map |
Do you have a tool that needs a solid account backend before it grows? Tell me about it.

Comments
No ratings yet
Log in to comment
Only members can comment and rate posts. It is free and takes a minute.
No comments yet. Be the first to share your thoughts.