菜谱项目

TrimStrings.php 342B

12345678910111213141516171819
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
  4. class TrimStrings extends BaseTrimmer
  5. {
  6. /**
  7. * The names of the attributes that should not be trimmed.
  8. *
  9. * @var array
  10. */
  11. protected $except = [
  12. 'password',
  13. 'password_confirmation',
  14. ];
  15. }