Last active
November 9, 2018 15:56
-
-
Save jonathangoncalves/a63aef2cb61e0cacefaea7f5aa0de566 to your computer and use it in GitHub Desktop.
Adding Mixin to help the IDE understand methods in your model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class BaseModel created to help IDE recognise all Model methods | |
* @package App\Models | |
* @mixin \Illuminate\Database\Eloquent\Builder | |
*/ | |
class BaseModel extends Model | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment