-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
Extending a class Locale.php #49
Comments
Hi @sebastienjean76, thanks for using this package. When you say extending the Can you give me an example to see what you want to achieve ? |
Hello :) I would like add new parameter. It's for add locale datepicker for my project and so it's different according the language. |
OK, i see what you want to achieve. The fast/optimal solution for this is by using a config file like this (Single responsibility principle thing): <?php
// config/datepicker.php
return [
'aa' => 'af',
'zu' => 'zu',
]; And access it like this I'm going to think about it and find an eloquent way to extend the |
Ok thanks. I try this way ;). |
It's |
My bad 😝 |
I need to extend your a class in your entities folder called Locale.php for add parameter config.
How do I go about doing that?
Thanks :)
I would like have
instead of
The text was updated successfully, but these errors were encountered: