2

I have used a laravel CRUD Generator Infyom Laravel Generator to generate CRUD code. By default it uses Repository Pattern which is confusing for me. Is there any way to remove only Repository Pattern without affecting working app (I am developing it) ?

Maharaj
  • 58
  • 6
  • Laravel doesn't use repositories on its own, that's coming purely from Infyom. So you should probably ask them: https://github.com/InfyOmLabs/laravel-generator/issues – jszobody Sep 30 '16 at 16:55
  • As far as I know, the Infyom generator is pretty new so I doubt they have an option to change this. You can always modify the controllers to use the Model directly as I'm assuming that's your issue. – Devon Bessemer Sep 30 '16 at 17:03
  • Sorry I am new to developing and laravel. I edited question. I asked here because someone with similar experience on stackoverflow might be help – Maharaj Sep 30 '16 at 17:06
  • 1
    you can set repository pattern false in laravel_generator file. you can find repository_pattern in options https://labs.infyom.com/laravelgenerator/docs/6.0/configuration#options. once set false and generate repository not generate. please check docs – Shailesh Ladumor Nov 13 '19 at 06:13

0 Answers0