Project
The Compelling Image: Growing an Online Photography School on Laravel
The Compelling Image is an online photography school with students in 70 countries. I build its new features, fix its checkout problems and improve how the site answers search engines, loads on phones and handles uploads.

The Compelling Image, or TCI, is an online, interactive photography school led by photographer and educator David Bathgate. Its website reports more than 5,000 students across 70 countries. People come to it to make stronger photographs, get personal critique on their work and develop long-term projects.
Behind the website sits a large Laravel application. It had already been running for years when I started on it, with real students, real payments and a lot of history in the code. A rewrite was never the plan. My job is to keep improving the platform while it stays open.
This write-up explains what the platform does and the parts I worked on myself. Another developer also works on the project, and their changes are not included here.
What I worked on
- New features: course packages, mentorship and workshop applications, two new landing pages and a rebuilt blog page.
- Payments: PayPal checkout problems, and invoices that failed after a successful payment.
- Search visibility: correct page responses, redirects, robots rules, an automatic sitemap and structured data.
- Speed: a much lighter homepage, with images sized for each screen.
- Security and releases: tighter upload rules and a careful routine for every update to the live site.
What the platform does
TCI teaches photography as a way of thinking, so its learning path has three stages: Seeing, Shaping and Building Work. Each stage has a core course, and every lesson mixes short field videos, written lessons, photographic examples and assignments. After the courses, students can move on to mentorship or join a workshop.
| Part of the platform | What it does |
|---|---|
| Courses and lessons | Video and written lessons, tests, progress tracking and certificates anyone can verify |
| Assignments and critique | Students upload photographs and the instructor critiques each one |
| Mentorship | One-to-one guidance over Zoom for 1, 3 or 6 months |
| Workshops | Workshop pages, applications and enrolment |
| Buying options | Single courses, course packages, bundles, gifts, coupons and a store |
| Community | Forum, private messages, student gallery and reviews |
| Instructor tools | Course management, student work and earnings |
| Admin panel | Orders, invoices, users, roles, blog, pages, menus and site settings |
The most interesting part is the assignment system. A photographer learns little from a quiz. They learn when someone looks at their pictures and says what works. So students submit sets of images, the instructor writes a critique on each picture, and the instructor can suggest a better order for the set, because sequencing is a skill of its own in documentary photography.
That system was there before I joined. Every change I make has to leave it working.
Course packages
The school sold courses one at a time. It needed a way to sell several courses together as one product, with its own price, teachers and students.
A package looks simple from the outside, but the existing code assumed that everything in a cart was a single course. So the work reached much further than one new table:
- Admin panel: create, edit, publish and sort packages, choose their courses and teachers, and manage who is enrolled.
- Checkout: the cart and order code now treat a package as its own kind of product.
- Student dashboard: a package appears with its courses, and those courses do not appear a second time in the normal list.
- Teacher earnings: commission on a package is worked out from the price actually paid on that order.
This is typical of work on a mature product. The new screen is the easy part. The real job is finding every place where the old assumption was hiding.
Mentorship and workshop applications
Mentorship and workshops are not things you simply add to a cart. The instructor wants to know who is applying and what they are working on before saying yes.
I built an application form for each one:
- The mentorship form asks about experience, the kinds of photography someone does, their current project, what they want to improve and a link to their portfolio.
- The workshop form asks about level, current work, what they find difficult, how they feel about critique and working independently, and accommodation.
Both forms are validated on the server and saved to the database. In the admin panel, each has a list of applications and a page showing one application in full, so the instructor can read them properly and decide.
Landing pages
Beyond the Click is the course new students are pointed to first, so I built a dedicated sales page for it. Its price comes straight from the course record. When the price changes in the admin panel, the page and the checkout change together, and nobody has to remember to update a second place. A visitor who is not signed in goes to the login page and comes back to the same step afterwards.
Start Here helps a new visitor choose. It asks what they want, whether that is stronger photographs, confidence with people or a meaningful long-term project, and points them to the right course.
I also updated the courses, how it works, workshops and mentorship pages around the three-stage path, so that a visitor sees the same clear route on every page.
A better blog
The blog holds more than 80 articles, so one improvement to the article page reaches a lot of content at once. I rebuilt that page into a magazine-style layout, with its own scoped styles so the rest of the site stays untouched.
- An "On this page" table of contents, built automatically from each article's headings. It highlights the section you are reading and includes a quick heading search.
- A FAQ section. Editors add questions and answers in the admin panel and reorder them with a few clicks, and the article shows them as an accordion.
- A clear byline with the author's name and bio, plus published and updated dates.
- Related posts from the same category, previous and next links, and an image lightbox.
I also fixed a quiet bug in the admin panel. A blank address field was filled in from the title with no check for duplicates, and an address typed with spaces was checked before its spaces became hyphens. So a second post could land on an existing address, and the site would keep showing the older one. The admin panel now refuses a duplicate, empty or badly formed address and says why.
Payments
PayPal. During testing, PayPal payments kept failing. The environment settings said sandbox, but the application was running in live mode, so the wrong credentials were going to the wrong service. I traced it through the application logs and the PayPal dashboard, then moved all four places that start a PayPal payment onto one helper, with logging that shows the mode actually in use.
Invoices. A customer could pay successfully and then hit an error, because the PDF library behind the invoices was missing on the server. I fixed it and wrote a small script that restores the library, rebuilds the autoloader and checks the invoice folder, so the fix can be repeated instead of worked out again.
Search visibility
I worked through a ticket list from the SEO team. Most of these problems were invisible to a normal visitor, which is why they had lasted so long.
Honest page responses. Unknown addresses used to redirect to the homepage. That looks harmless, but search engines treat it as a soft 404 and waste their time on pages that do not exist. Now a missing page answers 404, a moved page answers 301, a removed page answers 410 and a paused course answers a temporary 302. All of this lives in one redirect map, which is only checked when a page is not found, so normal pages pay no cost for it.
One address per page. The database ignores letter case, so /blog/SOME-POST opened the same page as /blog/some-post. Blog, course and package pages now answer only at their exact address. One old post even had a space in its address. A migration renamed it, and every old form of that address redirects to the new one.
Robots rules and images. The robots.txt file itself sat behind a redirect, and its rules blocked every image and the blog's pagination. Uploaded images also took a redirect on every request. Both now answer directly.
An automatic sitemap. The sitemap was a file edited by hand, so new posts did not reach it and it still listed pages that redirected. It is now built from the database: the main pages, published courses and workshops, and every blog post that should be indexed, each with its real last-changed date. It rebuilds daily and whenever a post is saved or deleted. If a rebuild fails, the old file stays in place and the error goes to the log.
Structured data. Articles, FAQs and courses now describe themselves to search engines through JSON-LD.
Speed
The homepage was doing too much before the visitor saw anything. I worked through it piece by piece:
- The hero image is now WebP in three widths, plus a portrait crop for phones, where only the middle of a landscape picture would show anyway. It is preloaded so it appears first.
- A new slide gets its image sizes when it is saved, and a command handles the older ones.
- Libraries left the pages that did not need them. The Swiper slider library is gone, and the range slider loads only on the page that uses it.
- Web fonts and the icon font no longer block the first paint, and fonts use WOFF2 with
font-display: swap. - Images further down the page load lazily, with their width and height set so the layout does not jump.
- Static files are cached for a year, with a version in the address that changes when the file changes.
On phones, the price and Enroll button now also appear above the course description, so nobody has to scroll through a long text to buy.
Security
A busy application that has been online for years needs regular security work. I went through the whole site, closed maintenance routes that a browser should never reach, tightened what can be uploaded, added one global check that refuses executable files on every upload route, made the web server refuse to run any PHP file except the application's own entry point, and cleared old backups and archives out of the web folder.
I keep the details private on purpose. A security write-up should not be a map of the site.
How I release changes
The live site takes real payments from people in many time zones, so every release follows the same routine:
- Package only the changed files.
- Check every PHP file and compile every template with the server's own PHP version. Newer syntax that runs on my machine could break the older version on the server.
- Compare each file on the server with its version in Git, to catch anything edited by hand.
- Back up the files being replaced, and the database.
- Copy the files, run the migrations and clear the caches.
- Check a list of key pages, compare the error log with before, and open the main pages in a headless browser.
It takes longer than a plain upload. In return, I always know exactly what changed and how to undo it.
I also prepared a full upgrade audit: what it would take to move the platform to current versions of Laravel and PHP, package by package and in phases. That turns a vague worry about old software into a clear decision for the owner.
What I took from this project
- Old code that earns money deserves respect. Small, reversible steps beat a big rewrite almost every time.
- Many SEO problems are plain engineering problems: wrong status codes, and files that nobody updates.
- Done means checked on the live site, not only on my own machine.
Tools used
| Area | Tools |
|---|---|
| Backend | Laravel, PHP, MySQL |
| Frontend | Blade templates, Bootstrap, jQuery, custom CSS |
| Payments | PayPal, PDF invoices |
| Images | WebP variants made on the server |
| SEO | JSON-LD structured data, automatic XML sitemap, redirect map |
| Delivery | Git, a scripted release checklist, headless browser checks |
Do you have a Laravel site that works but needs this kind of care? 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.