Git Product home page Git Product logo

Comments (7)

abishekrsrikaanth avatar abishekrsrikaanth commented on August 19, 2024

@barryvdh any luck looking into this?

from laravel-ide-helper.

barryvdh avatar barryvdh commented on August 19, 2024

Yeah it is on my list but pretty busy.
Op 12 nov. 2013 06:05 schreef "Abishek R Srikaanth" <
[email protected]>:

@barryvdh https://github.com/barryvdh any luck looking into this?


Reply to this email directly or view it on GitHubhttps://github.com//issues/41#issuecomment-28268560
.

from laravel-ide-helper.

abishekrsrikaanth avatar abishekrsrikaanth commented on August 19, 2024

OK, np. I will look forward to this.

from laravel-ide-helper.

barryvdh avatar barryvdh commented on August 19, 2024

You are free to create a PR if you want off course.

from laravel-ide-helper.

bytestream avatar bytestream commented on August 19, 2024

@barryvdh not sure that this is quite the same request, but I could do with the ability to either exclude directories similar to #135 or the ability to wildcard directories

Something simple like this might work?

$models = array();
foreach ($this->dirs as $dir) {
    foreach(glob((base_path() . '/' . $dir), GLOB_ONLYDIR) as $dir) {
        foreach (ClassMapGenerator::createMap($dir) as $model => $path) {
            $models[] = $model;
        }
    }
}

I say simple, because that allows you to only wildcard single subdirectories. You couldn't use ** any number of subdirectories. But there is this: https://gist.github.com/funkjedi/3feee27d873ae2297b8e2370a7082aad

Thoughts?

from laravel-ide-helper.

mfn avatar mfn commented on August 19, 2024

@abishekrsrikaanth is this still relevant? What's the use-case for generating the phpdoc for only certain models?

I checked the issues (open/closed) and this is the only one suggesting such a feature. It sounds edge-case/y and might not be worth the adding/maintaining.

@bytestream there's a config model_locations and it recently has received support for glob patterns to recursively descent into directories => #921
So I think your use-case is covered.

from laravel-ide-helper.

mfn avatar mfn commented on August 19, 2024

Furthermore I just realized the config already has ignored_models so I think it's already possible to achieve everything here anyway.

from laravel-ide-helper.

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.