Git Product home page Git Product logo

Comments (6)

bstrahija avatar bstrahija commented on August 15, 2024

This already incredibly simple with Laravel so I don't think there's a need for that.

Take a look at: http://laravel.com/docs/routing#route-prefixing

from laravel-modules.

thetutlage avatar thetutlage commented on August 15, 2024

This is manual, not dynamic , What i was looking for is if on the fly we can prefix the module folder name.

from laravel-modules.

bstrahija avatar bstrahija commented on August 15, 2024

I personally wouldn't want to use this since it would only confuse people on the team, because you wouldn't see the actual prefix in the routes file.

If you really need a feature like that, send a PR where it's not the default behaviour but somehow confugurable and I'll take a look at it.

from laravel-modules.

thetutlage avatar thetutlage commented on August 15, 2024

The reason i was looking for this
Let say you have a open source system where people can write modules for you, in that case there will be chances that 2 people will create similar routes.

We can easily ask them to prefix it manually as a good practice but if they will not do the same it may break the application

from laravel-modules.

bstrahija avatar bstrahija commented on August 15, 2024

I understand, but i don't plan f doing this unless there's a big enough interest. That doesn't mean that if you implement this with a smart config default I wont merge in your PR ;)

from laravel-modules.

thetutlage avatar thetutlage commented on August 15, 2024

I will try to implement that atleast for myself, i was just looking if is there something i can try to do from your opinion as you have better understanding to the package you wrote

from laravel-modules.

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.