AR Barbería gives each barber a public portfolio of haircut and style photos that potential customers can browse before booking. Images are uploaded directly from the staff panel, stored on the server’s public disk, and displayed dynamically in the Nuevos Cortes tab on theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/OswalSnow/AR-Barber/llms.txt
Use this file to discover all available pages before exploring further.
/servicios page. Any authenticated barber can remove their own photos at any time without any other changes required.
Where portfolio images appear
Portfolio images are loaded from the database and rendered on/servicios under the Nuevos Cortes tab. The tab is populated dynamically, so newly uploaded images appear immediately after upload without requiring a page rebuild or cache clear.
Customers browsing /servicios can view the full gallery to get a sense of each barber’s style before choosing a service and making a booking.
Uploading a photo
Open the staff panel
Navigate to
/dashboard and log in with your barber credentials if you have not already done so.Locate the portfolio upload section
Scroll to the portfolio upload section at the bottom of the dashboard. It contains a file input and a Subir button.
Choose an image file
Click the file input and select a JPEG or PNG image from your device. The file must be no larger than 2 MB.
Only JPEG and PNG files are accepted. The maximum file size is 2 MB (2048 KB). Files that exceed these limits are rejected by server-side validation before being stored.
File storage location
Uploaded images are stored on Laravel’spublic disk under the portfolio/ path.
public/storage. Run this Artisan command once after deploying:
POST /staff/portfolio
The image to upload. Must be a JPEG or PNG file, maximum 2048 KB (2 MB).
Deleting a photo
Authenticated staff see a Borrar Foto button beneath each portfolio image on the/servicios page. Clicking it sends a DELETE request to /staff/portfolio/{id}.
public disk and deletes the corresponding database record. The image disappears from the Nuevos Cortes gallery immediately.
Summary of portfolio endpoints
Upload image
POST /staff/portfolioAccepts a JPEG or PNG file up to 2 MB. Stores the file under storage/app/public/portfolio/ and creates a database record.Delete image
DELETE /staff/portfolio/{id}Deletes the file from the public disk and removes the database record. Action is permanent.