Quantcast
Channel: Laravel News
Browsing all 1815 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

URI Parsing and Mutation in Laravel 11.35

This week, the Laravel team released v11.35, which includes URI parsing and mutation, the ability to disable HTTP client exception response truncation, transforming an HTTP response to a Fluent...

View Article


Image may be NSFW.
Clik here to view.

Managing Concurrent Requests with Laravel Session Blocking

Laravel's session blocking prevents race conditions and data inconsistencies by controlling concurrent session access. This feature ensures data integrity during simultaneous operations. Understanding...

View Article


Image may be NSFW.
Clik here to view.

Using Fluent to Work With HTTP Client Responses in Laravel

In Laravel 11.2.0, we got a fluent() helper to conveniently convert array data into a Fluent instance. Now, starting in Laravel 11.35, we have a convenient method for transforming an HTTP client...

View Article

Image may be NSFW.
Clik here to view.

Dynamic Page Updates with Laravel Blade Fragments

Blade Fragments enable partial page updates by returning specific template sections, ideal for use with htmx or Turbo frameworks. Using Blade Fragments Basic fragment definition and usage: // In your...

View Article

Image may be NSFW.
Clik here to view.

Converting Collections to Queries in Laravel Using toQuery()

Working with large datasets in Laravel often requires flexibility in how we manipulate and process data. While collections provide powerful array manipulation methods, sometimes we need to switch back...

View Article


Image may be NSFW.
Clik here to view.

Announcing Inertia 2.0: Redefining Frontend Development for Laravel

We're excited to announce the stable release of Inertia 2.0, bringing significant improvements to how you build software with Laravel. This release is part of our continued investment in making the...

View Article

Image may be NSFW.
Clik here to view.

Laravel whenLoaded - Performance Optimization via Conditional Relationship...

Laravel's API Resources feature whenLoaded() to conditionally include relationship data in API responses, optimizing performance by preventing unnecessary database queries. Here is an example of using...

View Article

Image may be NSFW.
Clik here to view.

Wirechat - Laravel Livewire chat package

Wirechat is a new and powerful Laravel Livewire chat package created by Namu Makwembo that brings real-time private and group communication to your application. Key Features Realtime Messaging and...

View Article


Image may be NSFW.
Clik here to view.

Laravel VS Code Extension Public Beta

VS Code has firmly established itself as the go-to editor for developers worldwide. While PHPStorm seems to be the preferred choice for Laravel developers, many, especially those transitioning from...

View Article


Image may be NSFW.
Clik here to view.

Customize the Truncation of HTTP Client Request Exceptions

Have you ever received a bug report or looked in Sentry only to find a truncated HTTP client exception you couldn't read? By default, HTTP responses are truncated, which could potentially leave off...

View Article

Image may be NSFW.
Clik here to view.

Using withoutWrapping to flatten API responses

Laravel's API resources wrap responses in a 'data' key by default. While useful for many scenarios, sometimes a flatter response structure is needed and you can disable resource wrapping like this:...

View Article

Image may be NSFW.
Clik here to view.

Automated API documentation of Laravel API resources

API resources are an excellent way to build APIs with Laravel. They provide a transformation layer for models and the JSON returned by the API. And while you can configure how your models are...

View Article

Image may be NSFW.
Clik here to view.

Customizing Data Transformations with Laravel Casts

Laravel's custom casts enable tailored data transformations, extending beyond built-in casting capabilities to handle complex data types and business logic. Here is an example of using a phone number...

View Article


Image may be NSFW.
Clik here to view.

Set Data on a Fluent Instance in Laravel 11.36

This week, the Laravel team released v11.36, which includes a chainable Fluent::set() method, a default global alias for the new Uri class, and more. Fluent set() Method Steve Bauman contributed a...

View Article

Image may be NSFW.
Clik here to view.

Preserving Collection Keys in Laravel API Resources

When building APIs, Laravel reindexes resource collections numerically by default. For cases where original keys carry meaning, preserveKeys property maintains the intended data structure. <?php...

View Article


Image may be NSFW.
Clik here to view.

Working With URIs in Laravel

Laravel 11.35 introduced the Uri class powered by the PHP League's URI library. Uri makes it easy to manipulate and work with URIs in your Laravel application and includes some conveniences around...

View Article

Image may be NSFW.
Clik here to view.

Discover File Downloads in Laravel with Storage::download

Laravel's Storage::download simplifies secure file serving by providing a clean API for handling downloads while managing file storage abstraction. <?php namespace App\Http\Controllers; use...

View Article


Aaron Francis: Laravel Solo, Courses, Screencasting, and more

In this episode of the Laravel Creator Spotlight, we speak with Aaron Francis and look at his journey to fame, his recent Laravel package called Solo, Try Hard Studios courses, transitioning from...

View Article

Image may be NSFW.
Clik here to view.

Log Alarm Package for Laravel

The Log Alarm package for Laravel gives you real-time monitoring and error detection for your applications. It helps you stay on top of your logs by providing monitoring, error detection, and...

View Article

Image may be NSFW.
Clik here to view.

Working with JSON Attributes Using Laravel's Array Casts

Laravel provides AsArrayObject and AsCollection casts to handle complex JSON attributes more effectively, enabling intuitive manipulation of nested data structures. <?php use...

View Article
Browsing all 1815 articles
Browse latest View live