//ads: ?> Call authenticate manually in router middlewarephplaravel PHP Snippet 1:public function username() { return 'email'; // default is email but you can change it to id or user_id if you have this column in your users table }