Introducing Laravel 5.8 support to InfyOm Laravel Generator with more cleaner Repository Pattern
Laravel 5.8 just release this week with a bunch of new improvements. You can read the full post here about new updates. so in a very small fraction of time, we also worked on to add support of Laravel 5.8 into our generator. You can read the installation steps here.
Also, one another feature or improvement we have done is, we tried to create a cleaner and extendable repository pattern while generating CRUD. so far we were using prettus/l5-repository package, which is really awesome if you do not want to write your general functions of create/all/update/delete/find in all of your repositories. I really loved that package and that's the reason we extended that package when we create our repository.
This is all great when you are talking about simple CRUD functions. But things get confusing when people want to customize their code. I got a lot of emails and also lots of people created issues on Github regarding how to customize that function based on their certain needs.
So with this version, I decided to write our own simple BaseRepository which will be published into app/Repositories/BaseRepository.php. so developers are free to customize all the basic functions.
Actually, this is also possible with prettus/l5-repository as well and with our generator as well by publishing templates. But that needs some more work and some deep knowledge of customizing templates. But with this update, it will be easier.
Right now, I do not expect any breaking changes who are migrating their code from 5.7 to 5.8 which is using a generator. I tried to keep all old BaseRepository classes and repository package into dependencies. All their existing generated repositories should work fine.
Still, if someone is getting any error then they can contact me by creating issues on Github. I will try to respond there.
Hope this release will help and people can start to get started to upgrade their code to Laravel 5.8.
Another minor update release for InfyOm Laravel Generator with some enhancement for datatables and few bug fixes.
This release contains datatable duplication script & CSS fixes with partials files support for datatables js and CSS files.
Also, it contains few bugs fixes about save JSON model schema, text area field generation and few more.
You can find full release notes here.