Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using login for API routes without session
It is useful to use the same `AuthenticatesUsers` trait for login via API as for login in the browser, because the trait provides things like throttling and validation. The problem is similar to the discussion in laravel#208 - API routes may not have a session. This PR adds `if ($request->hasSession()) {` the same as the comments in laravel#208 suggest. This also replaces laravel#90 properly.
- Loading branch information