Laravel 8.7 Released

Laravel 8.7 Released

The Laravel team released 8.7 this week with new rate-limiting constructors and an onError() HTTP client method, along with the latest new features, fixes, and changes in the 8.x branch.

The Laravel team released 8.7 this week with new rate-limiting constructors and an onError() HTTP client method, along with the latest new features, fixes, and changes in the 8.x branch.

Add Per Hour and Per Day Constructors

User @ali-alharthi contributed perHour and perDay rate limiting for Laravel 8’s new RateLimiter functionality:

use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;

RateLimiter::for('global', function (Request $request) {
    return Limit::perHour(1000);
});

Laravel 8 introduces some nice rate limiting improvements you should check out if you haven’t had a chance yet.

HTTP Client onError

Tim MacDonald contributed an onError() method to the HTTP client that accepts a callback:

return $client->withHeaders($headers)
    ->post($url, $payload)
    ->onError(fn ($response) =>
        Log::error('Twitter API failed posting Tweet', [
            'url' => $url,
            'payload' => $payload,
            'headers' => $headers,
            'response' => $response->body(),
        ])
    )->json();

As suggested in the pull request, you can now pass a closure to the throw() method which will call the closure before throwing an exception:

return $client->withHeaders($headers)
    ->post($url, $payload)
    ->throw(fn($response) => Log::error('Twitter API failed posting Tweet', [
        'url' => $url,
        'payload' => $payload,
        'headers' => $headers,
        'response' => $response->body(),
    ]))->json();

Artisan Serve “no-reload” Option

Taylor Otwell contributed a --no-reload flag to the Artisan serve command, which does not reload the development server on .env file changes:

php artisan serve --no-reload

news laravel 8

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Laravel 8 New Features | Release Notes - Tuts Make

Laravel 8 has been launched on 8 September 2020. Here, we will tell you what's new features and improvements in Laravel 8 Version.

Laravel 8 Form Validation Tutorial

Laravel 8 form validation example. In this post, i will show you how to use laravel 8 validation on form. And add custom validation message

Laravel 8 Form Example Tutorial - Complete Guide

Laravel 8 form example tutorial. In this post, i will show you how to send form data on controller and insert in database using laravel 8

Laravel 8 CKEditor Tutorial Example

Laravel 8 ckeditor tutorial example, you will learn how to install or integrate ckeditor and use in laravel 8 app

Laravel 8 REST API Authentication with Passport Example Tutorial

Laravel 8 api authentication with passport. In this tutorial, we will show you how to build rest api authentication with passport in laravel 8