-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model::find and Model::findOrfail #74
Comments
Hey, they both work for me. Could you verify it is still not working? Are you also indexing the vendor dir? |
hi there. They are not working for me in Laravel 5. I had to manually add :
to my Article Model to make sure PHPStorm recognized it in my controller when I do this :
|
@abderrahmane-tj Try getting your model to extend the \Eloquent alias instead. @barryvdh It might be nice if the model helpers generated Eloquent\Builder method stubs for models that extend Illuminate\Database\Eloquent\Model. |
Extending @barryvdh , any update on
? Cheers //edit <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* App\Company
* @property integer $id
* @property string $name
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Product[] $products
* @method static \Illuminate\Database\Query\Builder|\App\Company whereId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Company whereName($value)
* @method static \Illuminate\Database\Query\Builder|\App\Company whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Company whereUpdatedAt($value)
* @mixin \Eloquent
* ^-----------------------
*/
class Company extends Model
{
} |
same issue here |
It's help author to close many issues! ) Like: barryvdh#269, barryvdh#259, barryvdh#248, barryvdh#209, barryvdh#191, barryvdh#74, and laravel/framework#7558 ))) etc. maybe
Hi,
This project is amazing !
but today i realized there is no auto suggestions for these two :
Model::find and Model::findOrfail
Can i add them manually ?
The text was updated successfully, but these errors were encountered: