@armababy it's working like a charm.
Thanks!
@armababy it's working like a charm.
Thanks!
Are the Core Modules loaded first and then the Custom Modules?
Or how does the system know, that my Model will overwrite that stuff?
If that would work, I can only make the customization in my "Base" Model and don't need PR or change in the Core Modules, right?
That would be perfect
I don't want to use forks, as in my opinion it is too much work, when you make changes in the Core.
What I would like to do is to contribute the changes I need for this feature.
Question is, what you suggest to do?
Change the location of the Repositories?
Hey @armababy,
I know that I can make in my Module whatever I want.
In this case I want to use the Page Module of the Core system. Actually the index page (DataGrid) shows all entries in the database.
For my App I need the same, but only the entries for the current user.
So my question is, what way we could find that my Module can overwrite the way this index page selects they entries?
I was thinking of overwriting the Repository somehow.
Regards
kay899
Hi,
for one of my projects, I need to overwrite some of the index methods of the Core Modules.
I don't want to show all existing entries, but e.g. only the ones of the current user.
Is there any "planned" way to do this? Can I add some kind of a filter to the DataGrid and if yes, how?
If there is no "planned" way, would there be an idea to make something like the Models Repositories be overwritten in any way?
I could try to do a PR if this would be a way to do this.
Thanks
kay899
Funny thing. I tries it today again and it was not working.
I did composer update and after that it was working ?!
Hi,
in the Translation Module I changed the value for user::users.table.email like so
But in my index view it stills shows the old value: "Email"
As I understand the Module correct, it should always use the version from the database, right?
Do I have to do anything else, to get this running?
Thanks
kay899
I thought the same. Perhaps you could contribute that?
In your Models ServiceProvider you need to extend the boot() method like here for my Band Module:
public function boot()
{
$this->publishConfig('band', 'permissions');
$this->publishConfig('band', 'settings');
}
Then you should do
php artisan module:publish-config
in your shell, which should copy the config files to your config folder.
After that it should work.
Please let me know.