Project
BNB Arts: Photo Licensing Platform with a Laravel API and Admin Panel
BNB Arts licenses photographers' work to publishers and businesses. I built its Laravel API and admin panel: photo uploads that read EXIF and IPTC data, one licence price list the server adds up, gallery search, accounts and PayPal orders.

BNB Arts is a photography business whose website works like a small photo agency. Its photographers' pictures sit in a searchable gallery, and publishers, companies and media can license a photo for a specific use, ask about prints, or pitch a photo story of their own. The price of a licence depends on how the photo will be used: in which form, where, for how long and at what size.
I built the Laravel side of the platform: the admin panel where the team uploads photos and sets prices, and the API that the public website calls for everything it shows. The public website itself is a separate Vue app made by another developer. It talks to my API for the gallery, search, accounts, the cart and orders.
What I built
- Photo uploads: each upload is saved in four versions, and the camera and press data inside the file is read and stored with it.
- A licence price list: one admin screen for every part of a licence price, from the usage period down to where the photo appears.
- Prices worked out on the server: the cart keeps only the buyer's choices, and the API adds up the price from the current list.
- Gallery and search API: categories, photographers, and a keyword search ranked by how many words match.
- Accounts: sign-up with email verification, token sign-in, a profile, and saved licences.
- Orders and payments: the cart, orders with their licence dates, PayPal payment records, and the admin screens for all of them.
- Content and enquiries: photographers, printing services, media items, the homepage video and slides, and three contact forms.
How BNB Arts works
Two groups use the platform: buyers on the website, and the team in the admin panel. Photographers do not sign in. The team manages their profiles and uploads their work.
Buyers
A visitor can browse the gallery by category and sub-category, or start from a photographer and then open that photographer's categories. The search takes keywords, a photographer's name, a city, province or country, a category, and a date range for when the photo was taken. A photo page shows a preview with its details and previous and next buttons that stay inside the same category.
To use a photo, the buyer builds a licence:
- how it will be used: once, or several times, and for repeated use, for how long
- where: the local market or international
- which file size or sizes
- the kinds of use (digital online, digital offline or print), and for each one what the photo goes into and where it will appear
The price follows every choice. A licence set-up can be saved under "My licenses", so the next photo does not need every answer again. The licence then goes into the cart. Checkout runs through PayPal on the website, and once PayPal confirms the payment, the website sends the order to the API with the licence choices and the licence's start and end dates.
Buyers need an account with a verified email address. Their profile holds company and address details, which the checkout fills in for them.
Anyone can also send a sales enquiry, a general enquiry, or pitch a photo story with a sample picture.
The admin team
The admin panel is where the business runs day to day:
- Image attributes: upload a photo, pick its photographer, website category and sub-category, and give it a title, description and reference prefix.
- Price manage: the licence price list, in seven tabs.
- Photographers, printing and media: profiles, printing services and press items, each with its own search engine title, description and keywords.
- Website content: gallery categories with thumbnails, the homepage video and the slider.
- People and money: users, orders with every licence detail, and payments.
- Enquiries: sales enquiries, photo story pitches and general enquiries, each with a list and a full view.
The panel is built on a bought admin theme, adapted to these screens, and long uploads show a progress bar.
Photos that describe themselves
A professional photo carries a lot of information inside the file. The camera writes its EXIF data: make and model, exposure, aperture, ISO, focal length and the moment the picture was taken. Photographers add IPTC data: a headline, a caption, keywords, the city, state and country, the byline and the copyright line.
When the team uploads a photo, the backend reads both blocks with the Intervention Image library and stores around 80 fields with the photo. Nobody has to type a caption, a place or a copyright line that the photographer already wrote. Keywords are stored in lower case, so they are matched the same way however the photographer typed them.
The same upload makes four files:
| Version | What it is for |
|---|---|
| Thumbnail | a 680 × 400 copy for gallery grids |
| Low | a light preview, the only version the public photo page receives |
| Medium | a middle-quality copy |
| High | the full-quality file |
Each photo also gets a reference number: the first one is random, every next one counts up, and the team adds a prefix of its choice, much like the reference numbers of a press agency.
Search uses all of this. A keyword search sorts the results by how many of the typed words each photo matches, so the best match comes first. The place filters use the IPTC city, province and country, and the date filter uses the date the camera recorded.
How a licence price is worked out
The heart of the platform is the licence price. A photo on the front cover of a printed magazine sold abroad for five years is worth more than a small picture on an internal website for six months, and the price has to say so.
The team sets every price in one place, under Manage Selection → Price Manage. Each tab is one part of the licence:
| Part of the licence | What the buyer picks | How it counts |
|---|---|---|
| Usage period | one-time or repeated use | one price per period |
| Duration | only the lengths that belong to the chosen period | one price per length |
| Location | local or international | one price per location |
| Image size | low, medium, high or original, one or more | the prices are added up |
| Usage type | digital online, digital offline and print, one or more | the price of each type |
| Use | for each type, what the photo goes into, such as a magazine or a website | the price of each use |
| Placement | for each use, where the photo appears, such as the front cover or inside pages | the price of each placement |
The total is the sum of every part the buyer picked. For the magazine cover above, that is the price of repeated use, plus the chosen length, plus international, plus the file size, plus print, plus magazine, plus front cover. The starting list in the code offers lengths from "6 to 12 months" up to unlimited use, and four file sizes from low to original. The team changes names and prices whenever it needs to.
Some rules keep the list sound. There can be no more than three usage types, and the panel refuses a fourth. A usage type cannot be deleted while uses still hang under it. Durations belong to a usage period in the database itself, so a length can never point at a period that does not exist.
Why the server does the sums. The cart stores only what the buyer chose. Every time the cart is shown, the API looks up each price and adds them up, so a price changed in the admin panel reaches every open cart at once, and the cart's amount never comes from the buyer's browser.
From a price sheet per photo to one price list
The first version priced each photo on its own. On the photo's page the team filled in a grid for every kind of use: print run, image size, electronic rights, method of distribution, duration and territory, each with its price. That works for a handful of photos. With a growing archive, every new photo meant filling in the grid again, and one price change meant opening every photo.
So I moved the pricing into the shared list described above. The upload now only describes the photo, and the price list describes the licence. A new photo can be sold the moment it is uploaded, and one change in the list reaches the whole archive.
An API for a separate website
Because the website was a separate app, the API had to be clear about who is asking and what they may do.
- Tokens: sign-in returns a Laravel Sanctum token, and the cart, orders and profile need it. Signing out deletes the account's tokens.
- Email first: sign-up sends a verification link with a long random code. Until it is used, sign-in tells the website that the email is not verified yet, and the website can ask for a new link.
- Your own data: new cart items and orders are tied to the signed-in account, and the cart and order lists show only that account's items. The API takes the user from the token, never from a field the website sends.
- Plain answers for the website: the price list, gallery, photographer and search endpoints answer in JSON shaped for the pages that use them, including the previous and next photo in a category.
The API has 59 endpoints in all, from the price list to the contact forms.
Orders and the admin view
An order stores the photo, its photographer, the PayPal payment details, the amount, every licence choice and the licence's start and end dates, and the API copies the photo into a folder that belongs to the buyer. In the admin panel, one order page shows the buyer, the licence in plain words (period, length, location, sizes, and each type with its uses and placements) and the photo's full camera and press data.
What I took from this project
Pricing is a product decision before it is code. The first version stored exactly what a licence contained, but it made the team do the same work again for every photo. Moving the prices into one list, and letting the server do the sums from that list, made the platform easier to run and harder to get wrong.
Tools used
| Area | Tools |
|---|---|
| Backend | Laravel, PHP, MySQL |
| API | REST endpoints with Laravel Sanctum tokens |
| Images | Intervention Image for EXIF and IPTC data and the four versions |
| Admin panel | Blade templates, a Bootstrap admin theme, jQuery with AJAX forms |
| Payments | PayPal on the website, order and payment records in the API |
| Laravel Mail for verification and password emails | |
| Website (another developer) | Vue, Vuex, Vue Router |
Do you need a Laravel backend with pricing rules your team can change on its own? 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.