riseno / laravel-minify-response
Minify html response
Installs: 1 666
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
This package is not auto-updated.
Last update: 2024-12-13 22:50:48 UTC
README
Laravel minify response middleware that will filter all the spaces and make all the HTML tags in one line.
Installation
Require this package with composer using the following command:
composer require riseno/laravel-minify-response
After updating composer, add the middleware to the middlewareGroups
array in app/http/Kernel.php
.
protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Riseno\MinifyResponse\MinifyResponseMiddleware::class, ], ... ];
License
The Laravel minify response middleware is open-sourced software licensed under the MIT license