# Installation

Add the repository to your composer.json :

```json
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://package.firstpoint.ch"
        }
    ]
}
```

Add ```@php artisan shop:publish``` to composer post update commands:

```json
{
    "scripts": {
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
            "@php artisan shop:publish"
        ]
    }
}
```

Then run:

```bash
composer require "firstpoint-ch/shop"
```

Run the installer:

```bash
php artisan shop:install
```

Publish Spatie Media Library migrations and migrate

```php
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"
php artisan migrate
```