laravel-ide-helper
laravel-ide-helper copied to clipboard
IDE Helper for Laravel
### Question: I have my custom `site_route` helper and I want PHPStorm suggestions, like it does with `route` method. I've created custom meta file: ```php namespace PHPSTORM_META { expectedArguments(\site_route(), 0,...
### Summary The `ide-helper:models` command modifies the DocBlock of the models in the application. It looks like this happens by reading the entire comment and rebuilding it, which makes sense....
can models property comment give database default field value, and auto generate field name const?
just like this: ``` /** 会员 基础 信息 * @property string|double $uuid_member_b default '0' COMMENT '用户唯一标识,有别于 rise_id,任何时候都不会变,可作为唯一性', * @property string|double $phone default '' COMMENT '用户手机号', * @property string|double $re_phone default...
### Versions: - ide-helper Version: 3.5.3 - Laravel Version: 11.37.0 - PHP Version: 8.3.15 ### Description: Recent version fixed namespaces for `@template` and `phpdoc types`, but there are some types...
 Showing this error. Undefined property: stdClass::$column_name How I fix it?
### Versions: - ide-helper Version: 3.3.0 - Laravel Version: 11.0 - PHP Version: 8.2 ### Description: In laravel 11 the docblock return type of [app()](https://github.com/laravel/framework/blob/5d006a562c6a2bb6f73c77491ee59117a103217d/src/Illuminate/Foundation/helpers.php#L116) function has changed using generics....
Similar issue to #1614 but for `Attirbute` methods. For example, this: ```php /** * @return Attribute */ public function exampleAttribute(): Attribute { return Attribute::make( get: fn (): array => ['hello'...
how to make use 'Illuminate\Database\Eloquent\Model' instead 'Illuminate\Database\Eloquent\TModel'?
### Versions: - ide-helper Version: 3.1.0 - Laravel Version: >= 10 - PHP Version: 8.3.9 ### Question: how to make use 'Illuminate\Database\Eloquent\Model' instead 'Illuminate\Database\Eloquent\TModel'?
### Versions: - ide-helper Version: 3.2.2 - Laravel Version: 11.30.0 - PHP Version: 8.3.x ### Description: ::find returns Illuminate\Database\Eloquent\Collection|null|TModel ::first returns Illuminate\Database\Eloquent\TValue|null 
### Versions: - ide-helper Version: 3.2.2 - Laravel Version: 11.35.1 - PHP Version: 8.3.14 ### Question: Suppose I have a model with an accessor attribute that returns an array of...