first commit
This commit is contained in:
19
Xboard/app/Http/Middleware/TrimStrings.php
Normal file
19
Xboard/app/Http/Middleware/TrimStrings.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
|
||||
|
||||
class TrimStrings extends Middleware
|
||||
{
|
||||
/**
|
||||
* 不需要去除前后空格的字段名
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
'password',
|
||||
'password_confirmation',
|
||||
'encrypted_data',
|
||||
'signature'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user