Accessing role on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
58
}
59
}
60
61
/**
62
* Determine if a User is an admin or is the active user.