---
title: "Installation — Sluggable for Laravel | Roundly"
description: "Install via Composer; publish the config, translations and slug-history migration only when you need them."
url: https://roundly-consulting.com/open-source/docs/sluggable-for-laravel/installation
language: en
---

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

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

# Installation

Require the package with Composer. The service provider and the Slugs facade alias are auto-discovered — no manual registration:

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

The package needs zero host configuration. Publish the config file and the validation translations only if you want to change them:

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

The slug-history migration is publish-only — nothing runs until you publish it. You need it only if you use slug history (301 redirects from old URLs):

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

## Publish tags

| Tag | Publishes | When |
| --- | --- | --- |
| `sluggable-config` | config/sluggable.php | To change defaults. |
| `sluggable-translations` | lang/vendor/sluggable (en + sk) | To change validation messages. |
| `sluggable-migrations` | create\_slug\_history\_table (timestamped) | Only for slug history. |

## About command

php artisan about shows a Sluggable section with counts and switches only — supported-locale count, the locale source, history and redirect on/off, reserved-word count, retries, key type and whether the defaults are customised. It never prints the locale list or the reserved words.

## 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/sluggable-for-laravel.md)
