Best of Laravel NewsNovember 2024

  1. 1
    Article
    Avatar of lnLaravel News·2y

    Solo for Laravel

    Solo for Laravel is a package that enhances local development by allowing multiple commands to be run simultaneously, each in its own terminal tab. It leverages Laravel Prompts to create innovative Text-based User Interfaces (TUIs). Installation involves requiring the package with Composer and installing the Solo Service Provider. Solo is customizable and supports both Light and Dark themes.

  2. 2
    Article
    Avatar of lnLaravel News·2y

    Laravel Solr

    Laravel-Solr is a package developed by Haider Jabbar Abdullah to integrate Apache Solr with Laravel applications. It offers easy installation, comprehensive indexing and searching methods, and built-in support for common use cases. After setting it up, developers can create cores, define fields, add documents, and use the query builder for searching. Additional commands are available for updating and deleting cores and fields.

  3. 3
    Article
    Avatar of lnLaravel News·2y

    Asymmetric Property Visibility in PHP 8.4

    PHP 8.4 introduces asymmetric property visibility, allowing different visibility scopes for reading and writing properties. This means properties can have various access levels for getting and setting. An example demonstrates how public properties can be set to have protected or private set visibility, giving developers more granular control. Note that class properties must have a type and set must be as restrictive or more restrictive than get.

  4. 4
    Article
    Avatar of lnLaravel News·2y

    Transform Data into Type-safe DTOs with this PHP Package

    The PHP Data Model package allows for lightweight and non-invasive hydration of type-safe PHP objects using reflection and attributes. It simplifies object hydration, ensures type safety, reduces defensive programming, and allows flexible value resolution. Integrate it seamlessly by adding the DataModel trait to your classes without altering class hierarchies. Additionally, it offers advanced features like required properties enforced via attributes, with extensive documentation and source code available on GitHub.