106 - Converting Empty Strings to Null

This commit is contained in:
Adam Wathan
2017-05-19 14:30:50 -04:00
parent a3aaa98ce0
commit cdc9b81a56
4 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
class TrimStrings extends BaseTrimmer
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_confirmation',
];
}