Best of LaravelDecember 2024

  1. 1
    Article
    Avatar of lnLaravel 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.

  2. 2
    Article
    Avatar of webcraftWebCraft·1y

    NativePHP Desktop App Builds are Here

    NativePHP allows developers to build desktop applications using PHP. It can be integrated with Laravel, providing a robust solution for creating native desktop apps with familiar tools.

  3. 3
    Article
    Avatar of communityCommunity Picks·1y

    How do I deploy my Laravel applications using Github Action?

    Deploying Laravel applications can be automated using GitHub Actions to streamline the process. This guide provides step-by-step instructions to set up a GitHub Actions pipeline, including the necessary YAML and bash scripts. It explains the creation of a `.github/workflows` directory, the setup of variables for repository secrets, and the jobs for building, deploying, and cleaning up a decoy branch. The post offers solutions for handling deployments on low-end cPanel servers and emphasizes the importance of resource optimization.

  4. 4
    Article
    Avatar of lnLaravel 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.

  5. 5
    Article
    Avatar of lnLaravel News·1y

    Performance Optimization via Conditional Relationship Loading

    Laravel's API Resources feature whenLoaded() allows conditional inclusion of relationship data in API responses, optimizing performance by avoiding unnecessary database queries. Examples showcase dynamic relationship loading based on request parameters, conditional inclusion of nested resources, and optimized query loading for better efficiency.

  6. 6
    Article
    Avatar of communityCommunity Picks·1y

    I may start using Event Sourcing in all my Laravel applications

    Event sourcing is an architectural pattern that logs events in chronological order, providing a complete history of state changes. Unlike traditional systems that store only the current state, event sourcing offers a full audit trail and simplifies debugging and recovery by allowing the replay of events. It's particularly useful for applications that need to track changes over time, though it adds complexity and has a steep learning curve. The author shares experiences using event sourcing in Laravel applications and discusses when it might be overkill for simpler projects.

  7. 7
    Article
    Avatar of communityCommunity Picks·1y

    Make 5x faster outbound requests in Laravel

    Learn how to make outbound HTTP requests up to 5x faster in Laravel using a trick with Laravel Octane. By reusing connections and keeping them as static variables, you can drastically reduce the overhead of repeatedly establishing new connections. This method can be particularly beneficial for applications making frequent external API calls and in scenarios like queues where the application stays in memory.

  8. 8
    Article
    Avatar of lnLaravel News·1y

    One-time Password Manager for Laravel

    The One-time Password (OTP) Manager package for Laravel offers a wide range of methods for generating, sending, verifying, and managing OTPs. It integrates with Laravel's cache system to throttle OTP sending and adds security by tracking requests. Key features include support for multiple OTP types, rate limiting, OTP invalidation after multiple failed attempts, and customizable mobile number validation. Full setup and usage details are available on GitHub.

  9. 9
    Article
    Avatar of phProduct Hunt·1y

    Wirechat - A robust Laravel livewire chat package

    Wirechat is a Laravel livewire chat package designed for robust real-time messaging. Created by , it is a developer tool featured on December 9th, 2024, and marks its first launch.

  10. 10
    Article
    Avatar of lnLaravel News·1y

    Automated API documentation of Laravel API resources

    API resources enhance the handling of data transformations for API responses in Laravel. Scramble is an automatic OpenAPI documentation generator that supports Laravel API resources without requiring PHPDoc annotations. With its latest update, it now fully supports API resource payload-building methods, ensuring accurate and up-to-date documentation.

  11. 11
    Article
    Avatar of thnThe Hacker News·1y

    New Glutton Malware Exploits Popular PHP Frameworks Like Laravel and ThinkPHP

    New Glutton malware has been discovered exploiting popular PHP frameworks like Laravel and ThinkPHP. Linked to the Winnti group, the malware harvests sensitive information, plants backdoors, and employs unconventional methods, including targeting cybercriminals. The attack chain involves modules to assess the environment and infect systems, while modifying system files for persistence. It includes a fully-featured backdoor with 22 commands that further the malware's reach and effectiveness.

  12. 12
    Article
    Avatar of lnLaravel News·1y

    Add Approvals to Your Laravel Application

    The Laravel Process Approval package streamlines the approval process within Laravel applications by automating permission requests and sign-offs. With features like intuitive configuration, multi-step approvals, role-based access, notifications, an audit trail, and customizable views, this package is designed to improve efficiency and compliance for complex approval needs.

  13. 13
    Article
    Avatar of laraveldevLaravel Dev·1y

    Build a Multi-Auth Login System with Laravel

    Learn how to build a multi-auth login system in Laravel that redirects users to different dashboards based on their roles (admin, agent, user). The guide covers setting up a Laravel project, installing the breeze package for authentication, modifying the user migration file, creating a database seeder with dummy data, updating controllers, and routes for role-based redirections.

  14. 14
    Video
    Avatar of codingwithlewisCoding with Lewis·1y

    I Built the Same App in ALL Versions of PHP (1995-2025)

    PHP, released over 30 years ago, has evolved dramatically, becoming a powerful programming language. The post covers recreating an app with every PHP version from 1995 to 2025, showcasing features, improvements, and significant milestones like the introduction of the Zend engine, object-oriented support, and frameworks such as Laravel. PHP's growth and adaptability, especially with modern tools and frameworks, have solidified its place in web development, even though it has faced criticism and competition over the years.

  15. 15
    Article
    Avatar of lnLaravel News·1y

    Laravel Livewire chat package

    Wirechat is a Laravel Livewire chat package designed for real-time private and group communication. It features real-time messaging, media sharing, customizable themes, and smart message deletion. Installation requires PHP 8.1+, Laravel 10+, and Livewire 3.2.3+, and involves running specific commands and integrating the Chatable trait into user models.

  16. 16
    Article
    Avatar of lnLaravel News·1y

    File Manager Package for Livewire

    The Livewire File Manager package simplifies file and folder management for Laravel applications. Key features include drag & drop, search functionality, multilingual support, and dark mode. It integrates seamlessly with Laravel and uses Spatie's Medialibrary for file handling.

  17. 17
    Article
    Avatar of communityCommunity Picks·1y

    Improving Laravel Sanctum Personal Access Token Performance

    The post discusses an issue with Laravel Sanctum personal access tokens where updating the `last_used_at` column caused a performance bottleneck due to frequent database writes. It provides a solution by creating a custom `PersonalAccessToken` model that overrides the `save()` method to prevent unnecessary writes. The implementation steps include generating the model, modifying the `save()` method, and configuring Sanctum to use the custom model, resulting in improved performance.

  18. 18
    Article
    Avatar of laravelLaravel·1y

    Laravel Nova 5.0 Now Available

    Laravel Nova 5.0 is now available, focusing on modernizing core dependencies, including Inertia 2, PHP 8.1+, Laravel 10+, and introducing new features like Tab Panels for better resource organization and improved field handling. The upgrade guide provides detailed instructions, and the update is free for recent purchases or through license renewal.

  19. 19
    Article
    Avatar of laravelLaravel·1y

    Announcing Inertia 2.0: Redefining Frontend Development for Laravel

    Inertia 2.0 introduces major new features for frontend development with Laravel, including support for asynchronous requests, deferred props for improved performance, data prefetching for faster page loads, and polling for UI synchronization. The release aims to enhance developer productivity and user experience by enabling more responsive and efficient single-page applications with popular frontend frameworks like React, Vue, and Svelte. Upgrading from Inertia 1.x to 2.0 is designed to be smooth, with minimal breaking changes.

  20. 20
    Article
    Avatar of lnLaravel News·1y

    Laravel Jobs

    Many companies are hiring Laravel developers, with several remote positions available. Opportunities range from senior software engineer roles to full-stack developer positions across various regions including the USA, UK, Europe, and Australia. Visit LaraJobs for more listings and hiring options.

  21. 21
    Article
    Avatar of lnLaravel News·1y

    Collect and Monitor Everything About Sent Emails in Your Laravel App

    The Laravel Mails package enables you to log and monitor all sent emails in your Laravel app, including attachments and events. It supports Postmark, collects feedback on delivery status via webhooks, provides notifications for bounces, and offers periodic pruning of logged emails. It's highly configurable and can be integrated with Filament Mails for a visual dashboard.

  22. 22
    Article
    Avatar of lnLaravel News·1y

    Converting Laravel Models to JSON for API Responses

    Laravel provides several methods for transforming Eloquent models into JSON for API responses, with toJson() being one of the simplest options. This method offers significant flexibility, allowing customization of the output through model attributes and relationships. Practical examples show how to use toJson() in controllers for creating structured JSON responses.

  23. 23
    Article
    Avatar of phpdevPHP Dev·1y

    Roast Laravel Mail

    Laravel Mail is an open-source email marketing platform that combines the strengths of SendPortal.io and the 42workflows package. It offers complete autonomy over hosting, eliminates high costs, and provides advanced features such as email validation with Reacher, a drag-and-drop workflow interface, detailed analytics, and a visual email editor. Laravel Mail is designed to empower developers and businesses with enterprise-grade capabilities within an open, community-driven framework.

  24. 24
    Article
    Avatar of lnLaravel News·1y

    Adding Request Context in Laravel Applications

    Learn how to use Laravel's Context facade to enhance application insight by adding persistent metadata to your requests. This guide provides code examples on implementing context in middleware and API request logging, which enriches logs with valuable debugging information.