# Laravel IIS Setup Guide

Follow these steps to host your Laravel project on Windows IIS.

## 1. Prerequisites
- **IIS Installed**: Ensure "CGI" is enabled under "Internal Information Services > World Wide Web Services > Application Development Features".
- **PHP 8.2 Installed**: Download the Non-Thread Safe (NTS) version of PHP and configure it.
- **URL Rewrite Module**: Download and install from [Microsoft's website](https://www.iis.net/downloads/microsoft/url-rewrite).

## 2. Point IIS to the Public Folder
When creating the Site in IIS:
- **Physical Path**: Point to `C:\path\to\your\project\public` (NOT the root folder).

## 3. Configure Permissions
Grant `Full Control` to the `IIS_IUSRS` group for the following folders:
- `storage`
- `bootstrap/cache`

## 4. Environment File
- Copy `.env.example` to `.env`.
- Run `php artisan key:generate`.
- Set `APP_ENV=production` and `APP_DEBUG=false`.
- Update your database credentials.

## 5. Web.config
Ensure the `public/web.config` file exists (I have generated this for you). This file handles the URL rewriting so that `yoursite.com/login` correctly points to `index.php`.
