• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemsdk / docker-apache-php-laravel / #68

pending completion
#68

push

web-flow
Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0 in /tools/04_php-coveralls

Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.4.3 to 2.5.0.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/2.5/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.4.3...2.5.0)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

19 of 42 relevant lines covered (45.24%)

0.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/app/Providers/RouteServiceProvider.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Providers;
6

7
use Illuminate\Cache\RateLimiting\Limit;
8
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
9
use Illuminate\Http\Request;
10
use Illuminate\Support\Facades\RateLimiter;
11
use Illuminate\Support\Facades\Route;
12

13
class RouteServiceProvider extends ServiceProvider
14
{
15
    /**
16
     * The path to the "home" route for your application.
17
     *
18
     * Typically, users are redirected here after authentication.
19
     */
20
    public const HOME = '/home';
21

22
    /**
23
     * Define your route model bindings, pattern filters, and other route configuration.
24
     */
25
    public function boot(): void
26
    {
27
        $this->configureRateLimiting();
1✔
28

29
        $this->routes(function () {
1✔
30
            Route::middleware('api')
1✔
31
                ->prefix('api')
1✔
32
                ->group(base_path('routes/api.php'));
1✔
33

34
            Route::middleware('web')
1✔
35
                ->group(base_path('routes/web.php'));
1✔
36
        });
1✔
37
    }
38

39
    /**
40
     * Configure the rate limiters for the application.
41
     */
42
    protected function configureRateLimiting(): void
43
    {
44
        RateLimiter::for('api', function (Request $request) {
1✔
45
            return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
×
46
        });
1✔
47
    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc