GithubHelp home page GithubHelp logo

Comments (5)

Mahmoudz avatar Mahmoudz commented on July 19, 2024

Well everything is possible and we can always find solutions to do whatever we need (it's not so easy but not impossible).

But anyway I don't see any use case for that! (could you please share your use case). Because one of the concepts of Hello API is to get rid of the ugly! folder structure of Laravel in the app, where every user place his classes anywhere he likes and it's hard to read people's code because of that..

And putting the Porto layer in the vendor, is gonna lead to slower development.. but that's not the only reason, that layer is meant to be used as place to hold shared code between your containers so it must be tied to your project code very well. (Example, if you wanna apply some sort of code on every controller you simply put that code in the container abstract folder in the port layer..).

Hope my answer helps. And again I'm always open to any kind of suggestions like this. Thanks.

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

You are right, and I understand all the advantages from Porto architecture. But how we can put together an Laravel standard app or package and the Hello-API container? maybe include de Laravel package on Hello-API app? Say something like Customers (Laravel app or package) and Employees (Hello-API container), the purpose is reuse, avoid to write the app again (customers or employees) only for use in one side or other...

Thanks in advance!!

from apiato.

Mahmoudz avatar Mahmoudz commented on July 19, 2024

@llstarscreamll I'm sorry I didn't understand what you mean!! Can you give more examples?

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

I think that I will go with the Porto philosophy from now, @Mahmoudz thank you very much for this amazing project!! 😄

from apiato.

Mahmoudz avatar Mahmoudz commented on July 19, 2024

@llstarscreamll cool :D you're more than welcome

from apiato.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.