deegitalbe/trustup-pro-admin-common

This package contains pieces of code that are shared between 'admin.trustup.pro' and 'trustup.pro'.

v6.1.0 2024-02-16 11:54 UTC

This package is auto-updated.

Last update: 2024-11-16 13:44:02 UTC


README

Via composer

composer require deegitalbe/trustup-pro-admin-common

Configuration

Install command

Execute this command to install package and publish configuration.

php artisan trustup_pro_admin_common:install

You will then have access to config/trustup_pro_admin_common.php that you have to configure properly.

Default configuration

Implements professional model interface

Your professional model should implements this interface

Deegitalbe\TrustupProAdminCommon\Contracts\Models\ProfessionalContract

Use default professional model trait

You can use this trait in your professional model

Deegitalbe\TrustupProAdminCommon\Models\Traits\ProfessionalModel

Custom configuration

Implements interface

Same step as default configuration step

Define interface methods yourself

/**
 * Getting professional id.
 * 
 * @return int
 * 
 */
public function getId(): int;

/**
 * Getting professional authorization key.
 * 
 * @return string
 * 
 */
public function getAuthorizationKey(): string;

/**
 * Persisting instance.
 * 
 * @param array $options
 */
public function persist(array $options = []);