2018-08-06 12:30:51 +00:00
|
|
|
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TrimStrings short summary.
|
|
|
|
*
|
|
|
|
* TrimStrings description.
|
|
|
|
*
|
|
|
|
* @version 1.0
|
|
|
|
* @author kaiarn
|
|
|
|
*/
|
|
|
|
class TrimStrings extends BaseTrimmer
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The names of the attributes that should not be trimmed.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $except = [
|
2022-08-10 09:18:10 +00:00
|
|
|
'current_password',
|
2018-08-06 12:30:51 +00:00
|
|
|
'password',
|
|
|
|
'password_confirmation',
|
|
|
|
];
|
|
|
|
}
|