Skip to content

Instantly share code, notes, and snippets.

@jonathangoncalves
Last active November 9, 2018 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathangoncalves/a63aef2cb61e0cacefaea7f5aa0de566 to your computer and use it in GitHub Desktop.
Save jonathangoncalves/a63aef2cb61e0cacefaea7f5aa0de566 to your computer and use it in GitHub Desktop.
Adding Mixin to help the IDE understand methods in your model
<?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