Call to undefined method Illuminate\Database\Query\Builder::with() code example
Example: Call to undefined method Illuminate\Database\Query\Builder::getAuthIdentifierName()
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable