sajad torkamani

Guards define how users are authenticated for each request. An example guard is the session guard that maintains the authentication state using session storage and cookies.

Providers define how users are retrieved from your persistent storage (e.g., MySQL database). Laravel provides a way to retrieve users via Eloquent. But you can define custom providers as needed.