---
title: "Installation — Forms for Laravel | Roundly"
description: "Install via Composer, publish and run the migrations (including the dependency packages’), and optionally publish config and translations."
url: https://roundly-consulting.com/open-source/docs/forms-for-laravel/installation
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Forms for Laravel](https://roundly-consulting.com/open-source/docs/forms-for-laravel.md)

# Installation

Require the package, then publish and run its migrations. The service provider and the Forms facade are auto-discovered — no manual registration:

```bash
composer require roundly-consulting/forms-for-laravel

php artisan vendor:publish --tag="forms-migrations"
php artisan migrate
```

The migrations are not loaded automatically — publishing is what puts them in your database/migrations, so a bare php artisan migrate won’t create the forms tables until you do. They publish in dependency order (forms → groups → fields → submissions → form submissions), so they run cleanly against an empty database with foreign keys intact. They are forward-only: they define no down(), so migrate:rollback leaves the forms tables in place.

## Dependency migrations

Forms builds on other Roundly packages — enums, attributes, media library and approvals — which Composer installs for you. Publish and migrate their tables too:

```bash
php artisan vendor:publish --tag="approvals-migrations"
php artisan vendor:publish --tag="attributes-migrations"
php artisan vendor:publish --tag="media-migrations"
php artisan migrate
```

## Config and translations

The config file is optional — publish it to swap models, map field types or change media and review settings:

```bash
php artisan vendor:publish --tag="forms-config"
```

The package’s exception messages (the forms::messages namespace) ship in English and Slovak and follow the app locale. Publish the translations to customise them or add another language:

```bash
php artisan vendor:publish --tag="forms-translations"
```

The publish tags the package exposes are forms-migrations, forms-config and forms-translations.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/forms-for-laravel.md)
