PHP code example of monkeysoft / laravel-sitesmonkey

1. Go to this page and download the library: Download monkeysoft/laravel-sitesmonkey library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

monkeysoft / laravel-sitesmonkey example snippets


return [
    'enabled' => env('SITESMONKEY_ENABLED', true),
    'website_id' => env('SITESMONKEY_WEBSITE_ID', ''),
    'website_secret' => env('SITESMONKEY_SECRET_KEY', ''),
    'api_url' => env('SITESMONKEY_API_URL', 'https://api.sitesmonkey.com'),
    //
    'auth' => [
        'model' => env('SITESMONKEY_AUTH_MODEL', '\App\Models\User'),
        'route_after_login' => env('SITESMONKEY_AUTH_ROUTE_AFTER_LOGIN', 'dashboard'),
    ]
];

        'sitesMonkey' => [
            'driver' => 'custom',
            'via' => \MonkeySoft\SitesMonkey\Logging\SitesMonkeyLogger::class,
        ],
bash
php artisan vendor:publish --tag="laravel-sitesmonkey-config"