How do you know that it's in the Laravel Login controller?

How to know came email or name?

went through a bunch of options, but have not found information about this
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;

class LoginController extends Controller
 use AuthenticatesUsers;

 public function username($string)
 return 'username';

 protected $redirectTo = RouteServiceProvider::PROFILE;

 public function __construct()
April 7th 20 at 15:51
1 answer
April 7th 20 at 15:53
OMG))) how did you get the $string in the function username() if not you have to trade?
There is the same request class. He is in himself and contains all the fields from your form. From here the need to name and to check email or a regular string

UPD: here you two moron)) Or one with two accounts!
public function username()

Find more questions by tags Laravel