MCMatters/laravel-helpers

View on GitHub
src/functions/request.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
<?php

declare(strict_types=1);

use Illuminate\Http\Request;

if (!function_exists('is_request_method_update') && Request::hasMacro('isUpdateMethod')) {
    function is_request_method_update(Request $request = null): bool
    {
        return Request::isUpdateMethod($request);
    }
}