The method isStudent() does not exist on Illuminate\Contracts\Auth\Authenticatable. It seems like you code against a sub-type of Illuminate\Contracts\Auth\Authenticatable such as Illuminate\Foundation\Auth\User.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
25
if (backpack_user()->/** @scrutinizer ignore-call */ isStudent()) {
Accessing student on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
27
// if the user wants to go further than authorized, redirect them to the current step
28
if ($request->path() != 'edit/'.backpack_user()->student->force_update) {