Accessing role_id on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Accessing person on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
14
15
if (in_array($role, [1, 2, 9, 10])) {
16
return ['form' => $form->create()];
17
}
18
if (in_array($role, [4, 5, 6]) && $companies < 1) {