PHP code example of hwavina / hwa-meta

1. Go to this page and download the library: Download hwavina/hwa-meta 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/ */

    

hwavina / hwa-meta example snippets


'providers' => array(
    // ...
    Hwavina\HwaMeta\HwaMetaServiceProvider::class,
);

'allow_type' => [
    .....
    'customer' => ['id', 'customer_id'],
],

// Example
CustomerMeta:_update(1, 'gender', 'male'); // update or add new gender for customer has id is 1
shell script
php artisan config:cache

# or

php artisan optimize:clear
shell script
php artisan config:cache

# or

php artisan optimize:clear
shell script
php artisan migrate