jsdecena / laracom

Laravel FREE E-Commerce Software
https://jsdecena.github.io/laracom
1.92k stars 863 forks source link

Migrate to Laravel 5.7 #133

Closed belguinan closed 6 years ago

belguinan commented 6 years ago

It would be good if we migrate to Latest version of Laravel. It's not required but we will have many features added, The only package that don't support 5.7 is shopping cart.

jsdecena commented 6 years ago

@belguinan and that is the core of this app right? :) There is already an issue created for the package so we just wait it out

belguinan commented 6 years ago

@jsdecena I am afraid if something went wrong with the developer or just on vacation for some "months", You can just fork it and update composer.json?

jsdecena commented 6 years ago

@belguinan Upgraded to L5.7 See commit https://github.com/Laracommerce/laracom/commit/7ec40a5df2a4e748d483611bfbde96998e08fc3f

belguinan commented 6 years ago

@belguinan Upgraded to L5.7 See commit 7ec40a5

@jsdecena I think we need to refactor the code, routes... We can use dependency injection instead of getting new item by id on database. What do you think? Why we need repositories instead of the default tools provided?

jsdecena commented 6 years ago

@belguinan Refactor which one?

belguinan commented 6 years ago

@jsdecena Routes CRUD. instead of calling find product by id for exemple we can just typehint Product on controller

jsdecena commented 6 years ago

That is done because development starts with tests (TDD). We need to create reusable methods and test it if it works. So every time we use it we know that the method we create is always working.

belguinan commented 6 years ago

@jsdecena I understand