laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

IDE Helper for Laravel

Results 184 laravel-ide-helper issues
Sort by recently updated
recently updated
newest added

## Summary Add option `use_generics_annotations` for collection type hints Before: ``` * @property-read \Illuminate\Database\Eloquent\Collection|Simple[] $regularHasMany ``` After: ``` * @property-read \Illuminate\Database\Eloquent\Collection $regularHasMany ``` I feel this is is a useful...

### Versions: - ide-helper Version: 2.12.3 - Laravel Version: 9.23.0 - PHP Version: 8.1 ### Description: When adding a macro on a `JsonResource` (which gets `Macroable` via the trait `DelegatesToResource`)...

bug

## Summary When className is in the same namespace as the class which PHP doc is being generated for, return the className without the namespace. Full class name is still...

The PHPDoc generation for models (`php artisan ide-helper:models`) generates the following: ``` * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()...

enhancement

## Summary If you write your models using the `--write-mixin` option the included docblock generated on the model will include a mixin. Previously the code replaced here would ignore the...

### Versions: - ide-helper Version: 2.8.1 - Laravel Version: 8.9.0 - PHP Version: 7.4.10 ### Question: Hi there, I've been using this package for a long time now and I...

question

### Versions: - ide-helper Version: 2.10.0 - PHP Version: 8 ### Question: How do we specify a more narrow directory for importing models, or is there a way to ignore...

question
stale

### Versions: - ide-helper Version: 2.10.0 - Laravel Version: 8.73.1 - PHP Version: 8.0.12 - Editor: VsCode 1.62.3 ### Description: Undefined method 'withQueryString'.intelephense(1013) ![image](https://user-images.githubusercontent.com/17777237/143138053-e7f1a2e6-cbc7-44d0-b6f2-fd75c5582c9a.png) ![image](https://user-images.githubusercontent.com/17777237/143138078-21e76898-d7a2-4ca0-b36d-4035e47b5f97.png) ### Steps To Reproduce: Just...

bug

## Summary The [documentation for defining accessors](https://laravel.com/docs/9.x/eloquent-mutators#defining-an-accessor) states that “To define an accessor, create a _protected method_ on your model to represent the accessible attribute.” (emphasis mine). This is currently...

## Summary Even though the documentation doesn't state this explicitly at the time of writing, it is possible to use the new Attribute accessor to create a calculated property where...