Skip to content

Installation and Configuration

Alex edited this page Feb 6, 2023 · 1 revision

Installation

You can install the package via composer:

composer require aon2003/laravel-trustpilot

Configuration

You can publish the config file with:

php artisan vendor:publish --tag="trustpilot-config"

This is the contents of the published config file:

return [
    /*
     |--------------------------------------------------------------------------
     | Default Domain
     |--------------------------------------------------------------------------
     |
     | This is the domain for which the reviews will be scraped by default.
     | Supports subdomains.
     */
    'domain' => 'www.example.com',

    /*
     |--------------------------------------------------------------------------
     | Default Language
     |--------------------------------------------------------------------------
     |
     | This is the language in which the reviews will be scraped by default.
     |
     | Supported values: "all", ISO 639-1 language codes (ex.: "en", "ru")
     |
     */
    'language' => 'all',
];
Clone this wiki locally