# Installation

> Install Laravel Audit Logs and publish its configuration and migration.

## Requirements

Laravel Audit Logs requires PHP 8.3 or later and Laravel 12 or 13.

## Install the package

Install the package with Composer:

```bash
composer require hosmelq/laravel-audit-logs
```

Run the installer to publish the configuration and migration:

```bash
php artisan audit-log:install
```

The installer can run the migrations for you. If you skip that prompt, run them manually:

```bash
php artisan migrate
```

## Publish manually

To publish each asset without the installer, run:

```bash
php artisan vendor:publish --tag="audit-log-config"
php artisan vendor:publish --tag="audit-log-migrations"
```

Continue with [configuration](https://hosmelq.com/docs/laravel-audit-logs/v1/configuration/), then [record your first audit log](https://hosmelq.com/docs/laravel-audit-logs/v1/basic-usage/recording-audit-logs/).
