We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7947a5d commit f2c5152Copy full SHA for f2c5152
src/ApiResponse.php
@@ -27,8 +27,8 @@ class ApiResponse extends JsonResponse implements ApiResponseContract
27
28
public function __construct(string $message = '', string $title = '')
29
{
30
- $this->title = $title ?: ('api-response::trans.success');
31
- $this->message = $message ?: ('api-response::trans.successful');
+ $this->title = $title ?: __('api-response::trans.success');
+ $this->message = $message ?: __('api-response::trans.successful');
32
33
parent::__construct();
34
}
0 commit comments