Systems | Development | Analytics | API | Testing

A guide to custom model casts in Laravel

Model casts, mutators, and accessors are something you work with a lot when building Laravel applications. They play an essential role in how you interact with your models and their underlying data. Laravel ships with a variety of handy, built-in casts which cover the majority of your use cases. But there may be times when you need to create your own custom casts to handle storing and retrieving data in a specific way.

The developer guide to Laravel authentication

Laravel comes packed with many ways to authenticate users. When installing a new application and wanting to add authentication to it, your choices are not limited. The options available for user authentication within Laravel include: As we can see, there are many installable packages that aim to make the whole process of Laravel authentication simple and easy for any software developer to get started.

Deploying serverless applications with Laravel Vapor

In recent years, the serverless paradigm has become known as a transformative approach to application development, allowing us to focus more on writing code and less on managing infrastructure. Laravel Vapor, a serverless deployment platform for Laravel applications, brings the power of the Laravel framework into the world of serverless architecture.

Working with images in Laravel using intervention/image

When handling images in your Laravel applications, you may sometimes be required to edit them. This could include resizing, cropping, or converting images to meet a given criteria. For example, you may want to crop and resize all user avatar image uploads to a fixed-sized square. In this article, we'll examine how to use the Intervention Image (intervention/image) package in Laravel to edit images.

Architecture testing with Laravel Pest

Ensuring that a growing codebase follows best practices and does not deviate from the standards is essential for any project. However, this can typically only be enforced manually by code reviews and other similar processes. As with any other manual task, this can be time-consuming, tedious, and error-prone. That's where architecture testing comes in. Architecture testing allows you to automatically enforce code standards such as naming conventions, method usage, directory structure, and more.

Building A SOLID foundation for Laravel API integrations

All developers will eventually need to integrate an app with a third-party REST API when doing web development. However, the RESTful APIs that we are trying to make sense of often do not provide a lot of flexibility. This article addresses this issue within your codebase, showing you how to seamlessly implement any Laravel API integration.

Building Livewire Components with Volt

In the past, when building Livewire components for our Laravel applications, we needed to keep our backend and frontend code split up into separate files. This can sometimes get a little confusing, especially with larger projects. But with Volt, we can now build single-file Livewire components where the backend and frontend code coexist in the same file. In this article, we'll look at what Volt is and how Volt components differ from traditional Livewire components.

Practical strategies for Laravel performance optimization

Laravel is the most popular PHP framework for building web applications and is loved for its elegance, simplicity, and scalability. However, like any other framework for web development, Laravel can experience performance issues if it’s not optimized for high performance. Laravel performance problems aren't usually due to the framework itself, but rather some suboptimal choices in the application.

A guide to Laravel pipelines

When building web applications, it's handy to break down a feature's complex processes into smaller, more manageable pieces, whether by using separate functions or classes. Doing this helps to keep the code clean, maintainable, and testable. An approach you can take to split out these smaller steps in your Laravel application is to use Laravel pipelines. Pipelines allow you to send data through multiple layers of logic before returning a result.

The ultimate guide to Laravel caching

In the web development world, speed and performance are must-haves. Whether you're building a static website, software-as-a-service (SaaS), or bespoke web software, it's important that everything loads quickly to keep your users happy. One of the most common ways to optimize for speed in Laravel is caching. Caching refers to the practice of storing data inside a "cache" or high-speed storage layer.