Laravel 5.7 #45
Laravel 5.7 #45
Conversation
$this->events->dispatch(new Attempting( | ||
$credentials, false | ||
)); | ||
$this->events->dispatch(new Attempting('jwt', $credentials, false)); |
Anticom
Nov 26, 2018
Iirc there's $this->name
available. Shouldn't this one be used? This also applies to Failed
and Login
.
Iirc there's $this->name
available. Shouldn't this one be used? This also applies to Failed
and Login
.
@Anticom you are right, my mistake. fixed. |
Looks good to me now. However still not an laravel expert ;) Edit public function getRequest() {
return $this->request ?: Request::createFromGlobals();
} As far as i can tell this is the only reason, why |
@Anticom if you look at Laravel's So we are talking about two different things here. This package depends on Laravel and not on Symfony components, so getting the request directly from the Laravel application seems fine to me. Finally I don't know what do you mean by whether |
The
__construct
method of Auth events has a new$guard argument
in Laravel 5.7:See: https://laravel.com/docs/5.7/upgrade
We now need to pass the guard name, otherwise an error will brake the application. This PR fixes that. It will work with Laravel >= 5.7