Eloquent ORM Code Hinting in PhpStorm

后端 未结 6 1554
再見小時候
再見小時候 2020-12-08 00:57

So I\'m just starting off with Laravel (using v5) and Eloquent. I\'m working on getting some basic APIs up and running and noticing that a lot of working methods don\'t show

6条回答
  •  隐瞒了意图╮
    2020-12-08 01:14

    If you're using BarryVHD's Laravel IDE Helper package, run:

    php artisan ide-helper:eloquent
    

    This will write /** @mixin \Eloquent */ into the vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php file.

提交回复
热议问题