Best of Laravel NewsOctober 2024

  1. 1
    Article
    Avatar of lnLaravel News·2y

    API Platform for Laravel

    API Platform simplifies the process of creating modern web APIs using Symfony or Laravel. It allows exposing Eloquent models as REST or GraphQL APIs, dynamically generating OpenAPI specifications, automatic CRUD operations, pagination, validation, and more. The platform also includes tools for securing routes, filtering, and integrating with Laravel's authorization system.

  2. 2
    Article
    Avatar of lnLaravel News·2y

    Prism is an AI Package for Laravel

    Prism is a Laravel package designed to integrate Large Language Models (LLMs) into applications, providing a unified interface for working with popular AI providers like Anthropic, OpenAI, and Ollama. Key features include elegant provider integrations, a fluent text generation API, seamless tool integration, and flexible configuration options. Full installation instructions and source code are available on GitHub.

  3. 3
    Article
    Avatar of lnLaravel News·2y

    Always Render API Exceptions as JSON in Laravel

    Laravel 11 introduces a new method, `shouldRenderJsonWhen()`, to enforce JSON responses for API exceptions without needing custom middleware. This improvement ensures that exceptions during API requests are always rendered as JSON, enhancing the developer experience when testing API routes in web browsers.

  4. 4
    Article
    Avatar of lnLaravel News·2y

    A Zero-dependency SVG Chart Library for PHP

    The maantje/charts package by Jamie Schouten is a zero-dependency PHP library for generating SVG charts. It offers a simple and intuitive API for creating various chart types including line, bar, stacked, and mixed charts. The package is lightweight, customizable, and outputs pure SVG, which can be embedded in PDFs. Detailed installation instructions and source code are available on GitHub.

  5. 5
    Article
    Avatar of lnLaravel News·2y

    The Inertia 2.0 Beta is Coming Soon

    Inertia 2.0 is set to launch its beta version soon, featuring a foundational rewrite of the request/routing layer to support asynchronous requests. Key new features include async requests, polling, whenVisible for async loading, infinite scrolling, prefetching pages, and deferred props. Stay tuned for the beta release announcement expected next week.

  6. 6
    Article
    Avatar of lnLaravel News·2y

    Creating a CLI Application With Laravel and Docker

    Learn how to create a CLI application using Laravel and Docker. The guide provides steps to set up a project, scaffold a command to check stock prices using the Polygon.io API, and prepare the application to run via Docker. It also explains how to configure environment variables for API keys and leverage Docker's ENTRYPOINT instruction for running commands.

  7. 7
    Article
    Avatar of lnLaravel News·2y

    The Inertia.js v2 Beta is Here

    Inertia.js v2 beta has been released with major updates including support for asynchronous requests. Key features include non-blocking requests, server polling, lazy loading data on scroll, infinite scrolling, prefetching, deferred props, and encrypted browser history state. The documentation is still in progress, and users are encouraged to report bugs on GitHub.