37 lines
732 B
PHP
37 lines
732 B
PHP
<?php
|
|
/**
|
|
* TrimStrings.php
|
|
*
|
|
* PHP version 7
|
|
*
|
|
* @category Middleware
|
|
* @package App\Http\Middleware
|
|
* @license https://opensource.org/licenses/MIT MIT
|
|
* @link https://laravel.com
|
|
*/
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
|
|
|
|
/**
|
|
* Class TrimStrings
|
|
*
|
|
* @category Middleware
|
|
* @package App\Http\Middleware
|
|
* @license https://opensource.org/licenses/MIT MIT
|
|
* @link https://laravel.com
|
|
*/
|
|
class TrimStrings extends Middleware
|
|
{
|
|
/**
|
|
* The names of the attributes that should not be trimmed.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $except = [
|
|
'password',
|
|
'password_confirmation',
|
|
];
|
|
}
|