Best of Laravel News — 2024
- 1
- 2
- 3
Laravel News·1y
Laravel VS Code Extension Public Beta
The Laravel core team has announced the public beta release of the official Laravel VS Code extension during Laracon US 2024. The extension aims to improve the development workflow by offering enhanced autocomplete, click-to-source navigation, and various helpful tools. Key features include auto-completion for routes, models, views, and more, direct links to definitions, and warnings for missing configurations or templates. Additional upcoming features include integration with VS Code test runner, Livewire, Volt, and Pint support.
- 4
- 5
Laravel News·2y
Generate Entity-Relationship Diagrams with Laravel
The Laravel ERD package allows for automatic generation of Entity-Relationship Diagrams from Laravel models with ease and provides visually appealing results. It offers advanced instructions for excluding tables and generating SVG files. While still under development, users can find installation and usage instructions on GitHub.
- 6
Laravel News·2y
Make your app faster with PHP 8.3
PHP 8.3 introduces exciting new features and major improvements in performance, making your app faster. Direct performance enhancements include optimizations in the PHP engine and garbage collection. Indirect performance boosts come from syntax improvements and type safety. Upgrading to PHP 8.3 and leveraging new features can lead to significant performance improvements. Caching strategies and transitioning to HTTP/2 can further optimize your app's performance.
- 7
Laravel News·2y
API Versioning in Laravel 11
Laravel 11 has streamlined its application skeleton by removing unnecessary service providers and default API routes. If you need to set up an API, you can use the `php artisan install:api` command to configure routes and necessary files. For API versioning, you can either add versioned routes in separate files like `routes/api_v1.php` and `routes/api_v2.php`, or configure them directly in the `bootstrap/app.php` file. This article provides step-by-step instructions for both methods to keep your routes organized.
- 8
Laravel News·2y
Introducing Built with Laravel
BuiltWithLaravel.com is a new site created by Matt Stauffer to showcase companies and organizations using Laravel. The site aims to convince potential clients of Laravel's legitimacy by listing notable organizations that use it. Users can also suggest companies for inclusion through a suggestion form. The focus is on a curated list of impressive organizations rather than a comprehensive one.
- 9
Laravel News·2y
Auth Screens for Your Laravel Apps
Managing multiple Laravel applications becomes simpler with DevDojo Auth, a free, open-source project offering customizable authentication pages compatible with Laravel 10.x and higher. Installation involves using Composer and publishing assets and configurations. The package allows for extensive customization, including setting up social authentication using provider credentials. Additional features include Github action workflows and built-in testing tools like Pest and Dusk.
- 10
Laravel News·2y
Introducing Laravel Cloud
Taylor unveiled Laravel Cloud at Laracon 2024 as a new app platform for deploying Laravel apps instantly. Highlights include auto-scaling, DDoS protection, push-to-deploy, and on-demand database scaling with Serverless Postgres. It aims to eliminate DevOps complexities, allowing developers to focus on shipping their ideas quickly. Interested users can join the waiting list for early access.
- 11
Laravel News·2y
Visual EXPLAIN for MySQL and Laravel
The MySQL Visual Explain tool by Tobias Petry simplifies the analysis of slow queries by providing a visual representation of MySQL's EXPLAIN output. An API and a Laravel package are available, adding methods to the query builder and offering various options to visualize and debug queries easily.
- 12
Laravel 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.
- 13
Laravel News·2y
Pinkary is now fully open source
Pinkary, an application built with Laravel, Livewire, and Tailwind, is now fully open source. It serves as a landing page for links and a community hub. With over 400 pull requests, it encourages open-source contributions and uses Pest 3 for testing. The project has quickly garnered over a thousand users and utilizes a SQLite database for its data management. Visit pinkary-project/pinkary.com on GitHub to learn and contribute.
- 14
Laravel News·2y
SQLite Studio is a SQLite Database Explorer
SQLite Studio is a lightweight, single-command database explorer for SQLite databases, which also supports connections to local SQLite databases, remote libSQL Servers, and PostgreSQL Servers. It features an intuitive interface with an overview of metadata, infinite scroll for rows view, and a custom query page. The backend is built with Rust while the frontend leverages TypeScript, React, Tailwind CSS, and Vite. SQLite Studio is open-source and available on GitHub.
- 15
Laravel 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.
- 16
Laravel News·2y
Fetch PHP is a Lightweight HTTP Library Inspired by JavaScript's fetch()
Fetch PHP is a lightweight HTTP library for PHP inspired by JavaScript's fetch API. It leverages the Guzzle client to offer both synchronous and asynchronous HTTP requests via a simple API. Key features include methods for JSON decoding, text extraction, and binary handling of responses. It supports easy integration with Guzzle options for advanced needs.
- 17
Laravel News·2y
How to Build Your First PHP Package
Learn how to create your first PHP package from scratch using Composer. This guide walks through initializing a Git repository, configuring the composer.json file, setting up autoloading, and adding basic source code. It also covers how to implement and organize tests using Pest PHP and Mockery. Finally, it provides tips for publishing your package on Packagist and automating version updates.
- 18
Laravel News·1y
HydePHP is a Laravel-powered Static Site Generator
HydePHP is a static site generator powered by Laravel, designed to help users create websites, blogs, and documentation pages using Markdown or Blade. It offers features like quick scaffolding of blog posts, documentation pages, and advanced page creation with Laravel Blade. HydePHP includes a TailwindCSS starter kit for immediate frontend development and ensures accessibility with semantic HTML and microdata. Comprehensive documentation and open-source code are available on GitHub.
- 19
- 20
Laravel News·2y
Build SSH Apps with PHP and Laravel Prompts
The ssh-php project by Sam Carré offers a simple starting point for building Text-based User Interfaces (TUIs) over SSH using PHP. It integrates Laravel Prompts, Chewie, and Docker, facilitating both development and deployment. The project includes commands for running an SSH server in a Docker container and connecting to it. Comprehensive installation instructions and resources are available on GitHub.
- 21
Laravel News·2y
Add Swagger UI to Your Laravel Application
The Laravel Swagger UI package allows developers to easily integrate and display their project's Swagger (OpenAPI v3) file within a Laravel application. By placing the OpenAPI file in the specified directory and navigating to the correct URL, users can access the Swagger UI. The package also supports OAuth2 configuration and custom authorization logic for enhanced security.
- 22
Laravel News·2y
A Deep Dive into Sessions in Laravel
Sessions in Laravel are crucial for persisting data across multiple requests, such as user authentication status and temporary data. Laravel offers various session drivers like cookies, databases, and cache stores. This post explores common pitfalls, such as typos in session keys, session key clashes, and unknown data types. It suggests using session classes for better session management, incorporating methods to generate session keys and adding type hints. Testing session data is vital, and both unit and feature tests are recommended to ensure correct functionality.
- 23
Laravel News·2y
NativePHP Windows Builds are Here
NativePHP now offers Windows support, allowing users to build applications for the Windows platform. The latest version of NativePHP can be obtained via Composer. This release also includes broader support for multiple versions of PHP, enabling full Laravel 11 support using PHP 8.2 or PHP 8.3.
- 24
Laravel News·2y
Basset is an alternative way to load CSS & JS assets
Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional asset() function and provides features such as downloading assets from CDNs, loading vendor and non-public assets, preventing double-loading of assets, and improving performance by using HTTP/2.
- 25
Laravel News·1y
Automatic speech recognition and transcription
Whisper.php is a PHP wrapper for whisper.cpp, a C/C++ port of OpenAI's Whisper model, created by Kyrian Obikwelu. Recently released in version 1.0.0, it facilitates fully local and API-free transcription with features like high and low-level APIs, model auto-downloading, support for various audio formats, and multiple output formats. It requires the FFI extension in PHP and relies on platform-specific shared libraries, downloaded automatically during the first initialization. Whisper.php currently supports Linux and macOS, with Windows support in development.