mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 09:52:55 -05:00
v5.0.0 update
This commit is contained in:
@@ -133,3 +133,11 @@ function getRelatedSlugs($type, $slug, $id = 0)
|
||||
->where('id', '<>', $id)
|
||||
->get();
|
||||
}
|
||||
|
||||
function respondJson($error, $message)
|
||||
{
|
||||
return response()->json([
|
||||
'error' => $error,
|
||||
'message' => $message
|
||||
], 422);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user