in laravel we can use Http Basic Authentication to facilitate user login . without having a login page , by attaching middleware->('auth.basic') , to the end of the Route in web.php , but by default it gets email as the username , how may i change it ?
thank you .
Route::get('/somePage','Controller@controllerFunction')
->middleware('auth.basic');
picture : https://drive.google.com/file/d/1gbzE0azW8TfZsvQN7k7ZoG2PIRlo14i6/view?usp=sharing