DeveloperGuide/step-0-sample-apps/sample-php-app-rest/app/Http/Middleware/TrimStrings.php (11 lines of code) (raw):
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'current_password',
'password',
'password_confirmation',
];
}