Laravel-ide-helper: PhpStorm doesn't recognize Eloquent methods

Created on 3 Jun 2017  路  1Comment  路  Source: barryvdh/laravel-ide-helper

PhpStrorm doesn't recognize findOrFail, paginate etc.

screen shot 2017-06-03 at 14 11 02

RandomAnswer.php

use Illuminate\Database\Eloquent\Model;

class RandomAnswer extends Model

Most helpful comment

Adding @mixin Eloquent solved this problem.

```php
/**

  • @mixin Eloquent
    */
    class RandomAnswer extends Model implements ApiModel

>All comments

Adding @mixin Eloquent solved this problem.

```php
/**

  • @mixin Eloquent
    */
    class RandomAnswer extends Model implements ApiModel
Was this page helpful?
0 / 5 - 0 ratings

Related issues

celorodovalho picture celorodovalho  路  4Comments

neeravp picture neeravp  路  3Comments

marcus-clements picture marcus-clements  路  3Comments

ghost picture ghost  路  5Comments

anik786 picture anik786  路  3Comments