about summary refs log tree commit diff
path: root/laravel/app/Http/Middleware/TrimStrings.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-12-26 09:52:37 -0500
committerZach DeCook <zachdecook@gmail.com>2018-12-26 09:52:37 -0500
commit77f1076c15fbb8bf826a58cb2d556801a82a81ee (patch)
tree2d8dd905708c9bafe397aed4dbb7d03a644b48cb /laravel/app/Http/Middleware/TrimStrings.php
parentd034708620b528d08bc8c4750439f84de484bc4a (diff)
downloadprosongsa-77f1076c15fbb8bf826a58cb2d556801a82a81ee.tar.gz
- Add laravel site directories
Diffstat (limited to 'laravel/app/Http/Middleware/TrimStrings.php')
-rw-r--r--laravel/app/Http/Middleware/TrimStrings.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/laravel/app/Http/Middleware/TrimStrings.php b/laravel/app/Http/Middleware/TrimStrings.php
new file mode 100644
index 0000000..5a50e7b
--- /dev/null
+++ b/laravel/app/Http/Middleware/TrimStrings.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Http\Middleware;
+
+use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
+
+class TrimStrings extends Middleware
+{
+    /**
+     * The names of the attributes that should not be trimmed.
+     *
+     * @var array
+     */
+    protected $except = [
+        'password',
+        'password_confirmation',
+    ];
+}