We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default boolean template uses following syntax:
{{ trans('backpack::crud.yes', 'Yes') }}
but Laravel trans() helper doesn't accept second argument as default value and it must be an array:
/** * Get the translation for a given key. * * @param string $id * @param array $parameters * @param string $domain * @param string $locale * @return string|array|null */ public function trans($id, array $parameters = [], $domain = 'messages', $locale = null) { return $this->get($id, $parameters, $locale); }
thus the use of boolean column causes an PHP error:
exception 'ErrorException' with message 'Argument 2 passed to Illuminate\Translation\Translator::trans() must be of the type array, string given
The text was updated successfully, but these errors were encountered:
@tabacitu I think you added this change? Did you have a plan/know about this?
Sorry, something went wrong.
fixed 5780563
No branches or pull requests
Default boolean template uses following syntax:
{{ trans('backpack::crud.yes', 'Yes') }}
but Laravel trans() helper doesn't accept second argument as default value and it must be an array:
thus the use of boolean column causes an PHP error:
exception 'ErrorException' with message 'Argument 2 passed to Illuminate\Translation\Translator::trans() must be of the type array, string given
The text was updated successfully, but these errors were encountered: