Skip to content

[Feature]: Autocomplete Magic Methods #905

@grafst

Description

@grafst

Laravel makes heavy usage of magic methods. It would cool if tinker (psySh) could autocomplete them.
For this to work it could use docblocks generated by barryvdh/laravel-ide-helper
This would be extremely usefull for a shell since i heavily rely on autocomplete.

/**
 * @method static \Illuminate\Database\Eloquent\Builder<static>|User withTrashed(bool $withTrashed = true)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|User withoutTrashed()
 */
Psy Shell v0.12.18 (PHP 8.4.16 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.0). Update with `doc --update-manual`

> User::with
User::with                 User::withoutEvents        User::withoutTimestampsOn  User::withoutTouchingOn
User::withoutBroadcasting  User::withoutTimestamps    User::withoutTouching **User::withTrashed** 
**User::withoutTrashed**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions