So basically the target is to register the custom messages in AppServiceProvider so all object's messages should be based on registered local messages.
class AppServiceProvider extends ServiceProvider
{
public function boot(): void
{
// Set messages of Verta
Verta::setMessages('fa', ['months.12' => 'حوت']);
}
}
But it throws the error, Non-static method Hekmatinasser\Jalali\Jalali::setMessages() cannot be called statically, would you provide an example how to do it in provider (globally).
Based on https://github.com/hekmatinasser/jalali/issues/9 issue, I tried to set the message in the provider but it looks like the function
setMessages
isn't static.So basically the target is to register the custom messages in
AppServiceProvider
so all object's messages should be based on registered local messages.But it throws the error,
Non-static method Hekmatinasser\Jalali\Jalali::setMessages() cannot be called statically
, would you provide an example how to do it in provider (globally).Thanks