Merge pull request #2325 from burakcakirel/add-expire-at-field-date-format-middleware

Add expire_at field to DateFormat Middleware for Estimates App
This commit is contained in:
Cüneyt Şentürk 2021-12-01 14:05:33 +03:00 committed by GitHub
commit 4274dcfa88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ class DateFormat
public function handle($request, Closure $next)
{
if (($request->method() == 'POST') || ($request->method() == 'PATCH')) {
$fields = ['paid_at', 'due_at', 'issued_at', 'started_at', 'ended_at'];
$fields = ['paid_at', 'due_at', 'issued_at', 'started_at', 'ended_at', 'expire_at'];
foreach ($fields as $field) {
$date = $request->get($field);