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:
parent
2cfdabeb62
commit
3e4f8084ae
@ -36,7 +36,7 @@ class Ban extends Model
|
|||||||
];
|
];
|
||||||
|
|
||||||
public $casts = [
|
public $casts = [
|
||||||
'bannedUntil',
|
'bannedUntil' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
|
@ -57,13 +57,13 @@ class Handler extends ExceptionHandler
|
|||||||
* Render an exception into an HTTP response.
|
* Render an exception into an HTTP response.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Throwable $exception
|
* @param \Throwable $e
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
* @return \Symfony\Component\HttpFoundation\Response
|
||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
*/
|
*/
|
||||||
public function render($request, Throwable $exception)
|
public function render($request, Throwable $e)
|
||||||
{
|
{
|
||||||
return parent::render($request, $exception);
|
return parent::render($request, $e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user