To improve the performance of a Laravel customer portal, ask someone to show you the slow click. "The orders list hangs when I search for an old order" gives you something to investigate. With "Laravel is slow", you could buy a bigger server and get the same phone call on Monday.
One order, one user, one measurement
Reproduce the task with an approved test account and a comparable volume of data. Record the search term, filters and result page. An administrator with different permissions or an empty database can get wildly different results from the customer who reported the problem. Anonymised identifiers and timings should be enough for the measurement. You don't need the contents of a customer's order in the log.
Open the browser's network panel. Is there a long wait for the first byte? Does the HTML arrive promptly, followed by a slow request for the list? Or is the list already on screen while a filter is slow to respond? Those observations send you to different places. Make sure you can repeat the test before you change anything.
When every row adds a query
Consider a list that shows the customer name next to each order. If the application loads the relationship while rendering each row, the number of queries grows with the number of visible orders. Compare small and large pages with everything else held constant. Repeated queries for the same relationship give you a concrete reason to try eager loading.
One expensive query is a different finding. Inspect the execution plan using the actual filters and sort order. An index on order status may do little for a search by customer and date. Check how much data comes back too. A list with four columns doesn't need every detail of every order. Laravel documents how relationship loading works.
Repeat the original search after the change. Include page two and an empty result. Speeding up page one isn't much use if paging now repeats records or quietly drops a filter.
Decide who a cached answer belongs to
Caching may help if many people regularly read an identical list. Before introducing it, write down who can share the answer and when it becomes wrong. Cancelling an order may need to remove it from the next result. A customer-specific list also needs to respect the permissions in effect for the person reading it.
Use two test accounts with different access to orders. Try a cold request followed by a warm one. Change an order, then revoke access for the second account. If the old entry is still visible, the speed gain has introduced a business error. A generic cache lifetime can't decide which result is valid.
When another service sets the pace
Opening an order might trigger a delivery-status request to another system. The local database can be quick while the browser waits for a carrier. Time that external step separately. Does the screen really need a current answer? If the last known status will do, tell the reader how recent it is.
A queue can move work outside the original click. What does the customer see before it finishes? An export can show as pending. A payment shown as successful makes a different promise. Work out what constitutes confirmation and what should happen after a retry. Laravel covers jobs and retries in its queue documentation. This belongs in the integration design.
When starting Laravel is the expensive part
Octane also needs a measurable reason. It may help where repeatedly starting the Laravel application takes a substantial share of the request. A slow query or a slow external request is still slow in a long-lived worker. Before trying it, check whether any state could linger in memory between requests. Laravel explains Octane's operating model.
Follow the delay into the browser
If the response arrives quickly, inspect what the browser does next. How large is the HTML? Does a substantial script have to finish before someone can use the first filter? A run on an ordinary phone may reveal a delay hidden by a developer's machine. Our Lighthouse report for duna.digital is a separate lab example from a site built with Astro.
Questions before a rebuild
Does the portal need a bigger server?
Measure utilisation and waiting time during the affected task. If the system runs short of processing capacity under normal concurrent use, compare a larger instance. If the request mostly waits for an external response, a faster processor is unlikely to improve that response.
What makes a useful acceptance test?
Repeat the reported task with the same data and permissions under comparable load. Record slower runs as well. A better average won't resolve a complaint about a search that still hangs.
When should we revisit the architecture?
When the delay can be traced to a specific component and smaller interventions can't address the underlying problem. For larger changes, compare refactoring, gradual replacement and a rewrite.
The entsorgo platform illustrates the staged introduction of a Laravel application while day-to-day operations continued. entsorgo and DUNA belong to the same group of companies. For larger changes, software development can be split into useful business releases. If you run a Laravel portal, show us the task that takes too long.