fix(suspensions): fix missing datetime cast

A missing datetime cast caused issues in the suspension service, where it tried calling Carbon methods on a string (which should have been a Carbon instance).
This commit is contained in:
Miguel Nogueira 2023-07-02 00:03:35 +01:00
parent 2cfdabeb62
commit 3e4f8084ae
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class Ban extends Model
];
public $casts = [
'bannedUntil',
'bannedUntil' => 'datetime',
];
public function user()

View File

@ -57,13 +57,13 @@ class Handler extends ExceptionHandler
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Throwable $exception
* @param \Throwable $e
* @return \Symfony\Component\HttpFoundation\Response
*
* @throws \Throwable
*/
public function render($request, Throwable $exception)
public function render($request, Throwable $e)
{
return parent::render($request, $exception);
return parent::render($request, $e);
}
}