Development of websites and web applications using Laravel

BackendLaravel
Three-dimensional Laravel emblem made of chrome and turquoise glass

We develop offices, B2B portals and digital services that combine strong design with your business rules, data and integrations.

Digital service illustration

BIG FISH · Laravel

Business Process Automation

Development of a personal account in Laravel connects company rules with a clear workspace. The dealer sees his prices and orders, the manager sees approvals, and the manager sees the results. Different rights receive different interface accents.

When creating a CRM and B2B portal on Laravel, we design the chain from application to execution: statuses, documents, comments and change history. The user sees the next available step, even if there is a queue of tasks and exchange with the ERP behind it.

GUIDE / 01

Application architecture

We start with a process map: who creates the order, who changes the price, where the balance is stored and when the order is considered accepted. For the dealer portal, we separate the catalogue, orders, negotiated prices and integrations. At the first stage, these can be modules of one application with a common base - they are easier to deploy and maintain. A separate service appears when there is a specific need for an independent workload, team, or release cycle.

Before development, we record the owner of each value. For example, ERP owns balances and shipments, the portal owns drafts and approvals. We document status transitions and prohibited actions. This helps prevent you from getting two competing versions of the order.

Checking on the project
Design output: context diagram, data source table, state model and list of integration contracts.

GUIDE / 02

Request: check, resolve, execute

The controller accepts the request, but must not contain the entire business process. Form Request checks the form of the data: quantity is an integer in the valid range, the address refers to the selected client. The access policy then checks the employee's permissions, and the application service performs the action. A syntactically correct request does not mean that the discount is allowed.

Price, discount and total are recalculated by the server. The client transmits the product ID and quantity, but not the amount, which the application is required to trust. Errors are returned next to the fields; The interface saves the entered data and explains the next step.

Checking on the project
Acceptance: repeat the request directly to the API, replace the price, send a fractional and negative quantity. The server must reject the violation regardless of the interface.

GUIDE / 03

Data and Transactions

An order has items, a customer, a condition version, and a change history. We store monetary values ​​with an explicit currency and precision: for example, an integer number of minimum monetary units. The position stores a snapshot of the price at the time of registration, otherwise changing the price list will rewrite the sales history.

We create an order and its items in a database transaction. For a competing reservation, select the appropriate blocking or version checking. An external HTTP request to ERP does not make the local transaction distributed: we provide a separate state and re-delivery for the exchange.

Checking on the project
Receiving: Two employees simultaneously order the last available balance. We check for consistent behavior, not just a successful single request.

GUIDE / 04

Login and permissions at the company level

For your own browser account, you can use session authentication; for third-party clients - a suitable token scheme. Sanctum supports both scenarios, but the selection and configuration depends on the domains and clients. Passwords, sessions, access recovery and brute force protection require separate configuration.

The “manager” role alone is not enough. The policy must take into account the user's company, order affiliation, process stage, and approval limit. A user of one dealer organization should not read the data of another, even if he guesses the identifier. Checks apply to uploads, attachments, and background activities.

Checking on the project
We create a “role × action × data area” matrix and check the prohibitions with automatic tests. We select two-factor login and session lifetime according to the requirements of the project.

GUIDE / 05

API as a contract between systems

We describe resources, required fields, error format, pagination and compatibility rules. For mobile applications and partner systems, the OpenAPI specification with examples is useful. API Resources help control the fields returned; internal model attributes should not be included in the response by chance.

Order creation may return 202 Accepted if exchange with ERP is still pending. The response contains an identifier and a status by which the client recognizes the result. Removing or renaming a field requires a consistent client migration; The URL version number alone does not solve this problem.

Checking on the project
Acceptance: contract tests for required fields, access restrictions, empty lists, and predictable error format. The example below is a project contract, not a built-in Laravel route.

POST /api/v1/orders
Idempotency-Key: dealer-42-order-108

{"items":[{"sku":"PUMP-240","quantity":12}]}

HTTP/1.1 202 Accepted
{"id":"ORD-108","status":"awaiting_erp"}

GUIDE / 06

Integrations without double orders

The ERP may accept the order, but the connection will be dropped before a response is received. Therefore, resubmitting should not create a second document. We associate the idempotency client key with the company and the request checksum; We reject a repeat with the same key and other data. On the recipient's side, we agree on a unique external identifier.

For important events we use the dispatch log: the order record and events are created atomically, the handler delivers the event separately. We check webhooks by signature and validity period, and save the event identifier. Timeout, number of retries and manual recovery are included in the integration project.

Checking on the project
Acceptance: event repeat, response 500, timeout after order accepted and notification order out of order. The status "sent" is not the same as the status "accepted by ERP".

GUIDE / 07

Queues and background tasks

Catalog import, document generation and notification sending can be performed in a queue. The user receives a clear status while the lengthy operation runs separately. We separate critical tasks from mass mailings so that large imports do not delay order confirmation.

It must be safe to restart the job. We configure timeouts, the number of attempts and delays between them, monitor the depth of the queue and the age of the oldest task. Notifications that depend on the transaction are launched after its successful completion. The error after the last attempt is included in a list that is understandable to the operator.

Checking on the project
Acceptance: Stop worker in the middle of processing and resume it. The order should be completed once, and the operator should see the reason for the hangup.

GUIDE / 08

Files and documents

Quotes, contracts and invoices are stored separately from public catalog images. We check access to the document by user and company; For downloading, we use a controlled route or a time-limited link. The secret path is not a substitute for checking permissions.

We check the size and valid file type, form the server name, define the content checking policy and retention periods. When generating a PDF, we fix the version of the source data and template. We select object storage and backups along with access and recovery requirements.

Checking on the project
Acceptance: someone else's document via direct link, expired link, too large file and file with a changed extension.

GUIDE / 09

Performance and cache

First, we measure user scenarios: opening a catalog, searching by article, placing an order. We look at the number of SQL queries, the time of external calls and the size of the response. Indexes, pagination, and loading related data are often more important than adding servers.

Caching data with a clear expiration date. The negotiated price key includes the company and terms version: the general key can reveal someone else's discount. A change in price or rights must invalidate dependent records. When placing an order, we check the current conditions again.

Checking on the project
Target delays and load profile will be agreed upon before the test. The framework does not guarantee a specific RPS: the result depends on the application, base, infrastructure and external services.

GUIDE / 10

Interface, accessibility and search

Laravel can be combined with server-side templates, Livewire, or a standalone React/Vue front-end. The choice depends on interactivity and command. For a public catalogue, we think about indexable URLs, metadata and content display; a closed account should not accidentally end up in a search.

Design begins with the employee’s tasks: find a product, compare conditions, understand the reason for blocking. We adapt tables to a narrow screen, make confirmations unambiguous, and make keyboard focus visible. Light and dark themes should maintain contrast in charts, notifications, and states.

Checking on the project
Reception: keyboard ordering, text enlargement, form errors, empty catalog, slow network and long product names.

GUIDE / 11

Tests, Activity Log and Observability

We check not only a successful order. The set includes discount boundaries, company isolation, competing changes, repeat events, and ERP unavailability. It is convenient to check domain rules separately, and critical chains - with integration tests and browser scripts.

The technical error log and the business action log solve different problems. In the log we record the employee, action, time and changed values; We do not record secrets or unnecessary personal data. The end-to-end request identifier links the portal, the queue job, and the call to the external system.

Checking on the project
Configuring alerts about communication failures, increasing errors and queue delays. Each signal requires a responsible and described recovery order.

GUIDE / 12

Release and Maintenance

Separate development, testing and production environments. We do not store secrets in the repository, we disable debugging output on the public server. The release includes building the interface, checking configuration, migrating, and restarting long-lived worker processes.

We design base changes to be compatible with previous code at the time of release. Rolling back an application does not automatically undo data changes. Before a dangerous migration, you need a separate recovery plan and a verified copy. We supplement the backup of the database, files and configuration with a practical recovery test.

Checking on the project
Before transferring the project, we fix the environment diagram, release commands, backup schedule, responsible accesses and dependency update regulations. Specific response times are determined by the support agreement.

Frequently asked questions

When is Laravel better than an off-the-shelf CRM?

When the value of a product is determined by its own processes, interface and data model. If the problem is solved using the settings of a ready-made system, we first evaluate this path: custom development requires a budget for development and maintenance.

Is it possible to link the application with 1C and Bitrix24?

Yes, subject to an available exchange method and the necessary rights. Before the assessment, we study the configuration, API, volumes, restrictions and rules for updating data. Integration is designed for specific systems.

What's included in the design?

Scenario exploration, screen structure, prototype, visual system, adaptive layouts and states: loading, errors, empty data, access restrictions. The design is tested on user tasks.

How to estimate cost and timing?

According to the agreed scope: roles, processes, screens, integrations, workload and migration requirements. We first highlight a useful first release, then evaluate the milestones and dependencies.

Will we receive code and documentation?

The contents of the transfer are fixed in the contract: source code, design, data diagram, API description, release commands and instructions to the administrator. We will agree on the rights to the results and the procedure for support in advance.