Comments (7)
@barryvdh any luck looking into this?
from laravel-ide-helper.
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.
OK, np. I will look forward to this.
from laravel-ide-helper.
You are free to create a PR if you want off course.
from laravel-ide-helper.
@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.
@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.
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)
- Unknown Column HOT 5
- Incorrect type for nullable morph HOT 3
- Two blank docblock lines in model HOT 1
- Thread docs bloks as primary source of type
- Nullable timestamps HOT 5
- Defining database in $table no longer works? HOT 2
- Support for casts AsEnumCollection HOT 3
- php artisan ide-helper:meta throws error PHP Warning: Trying to access array offset on value of type null HOT 2
- Expected type 'iterable'. Found 'Illuminate\Database\Query\iterable'. HOT 3
- newQuery and newModelQuery are not static methods
- MySqlGrammar: : compileColumns function for mariadb and mysql information_schema. The columns structure difference is an error HOT 1
- Json mysql column is translated as mixed instead of string
- As a Developer working on Windows I want the Line-Endings inside the generated PHP Doc to be CRLF HOT 3
- Exception: Method MongoDB\Laravel\Schema\Grammar::compileColumns does not exist. HOT 1
- Macro on HttpClient does not return correct Return statement
- Make model factory method annotation optional in phpDoc HOT 1
- Issues after Laravel 11.15 HOT 3
- Method "only" does not exist on class "Illuminate\Http\Request"
- Get type of model when using Eloquent with methods from Query\Builder
- Is this a bug...? Is this a dream...? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-ide-helper.