> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firepitcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up

> Set up your Laravel installation to work with Firepit CMS

1. Extend your user model from the Firepit User model:

```php theme={null}
<?php

namespace App\Models;

use Firepit\Cms\Models\User as FirepitUser;

class User extends FirepitUser
{
}
```

Add this class to the `$middleware` array:

```php theme={null}
Route::middleware([\Firepit\Cms\Http\Middleware\SiteMiddleware::class])->group(function(){
    // Your routes
});
```

If you're using multi-language, also add this middleware:

```php theme={null}
\Firepit\Cms\Http\Middleware\SiteLanguageMiddleware::class
```
