condoedge/utils

Utils helpers module to your kompo application


README

Install and configuration steps

Use composer

composer require "condoedge/utils"

Migrate database

php artisan migrate

Add HasUserSettings trait

In your User model, add the HasUserSettings trait:

use CondoEdge\Utils\Traits\HasUserSettings;

class User extends Authenticatable
{
    use HasUserSettings;

    // Your user model code...
}

Publish config file

php artisan vendor:publish --provider="CondoEdge\Utils\UtilsServiceProvider" --tag=kompo-utils-config

Publish icons

php artisan vendor:publish --provider="CondoEdge\Utils\UtilsServiceProvider" --tag=kompo-kompo-utils-icons

Publish scripts

php artisan vendor:publish --provider="CondoEdge\Utils\UtilsServiceProvider" --tag=kompo-utils-assets

Load styles

// In you main scss file
@use "../../vendor/condoedge/utils/resources/sass/kompo-utils";

Install intro.js

npm install intro.js --save

Load scripts

// In your main js file
import utils from '../../vendor/condoedge/utils/resources/js/utils';
window.utils = utils;

IntroJS Animations

More explanations soon. For now just a minor clarification to set the image tooltip for IntroJS animations.

$introjs-image-tooltip: url('../images/introjs/introjs-image-tooltip.png');