Accessing username on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
22
return back()->with(['message' => 'Customer Link Broken', 'type' => 'warning']);