PHP code example of hwacom / personnel-info

1. Go to this page and download the library: Download hwacom/personnel-info 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/ */

    

hwacom / personnel-info example snippets


\Hwacom\PersonnelInfo\PersonnelInfoServiceProvider::class,

    'hr'       => [
        'driver'         => 'mysql',
        'host'           => env('HR_DB_HOST', '127.0.0.1'),
        'port'           => env('HR_DB_PORT', '3306'),
        'database'       => env('HR_DB_DATABASE', 'forge'),
        'username'       => env('HR_DB_USERNAME', 'forge'),
        'password'       => env('HR_DB_PASSWORD', ''),
        'charset'        => 'utf8mb4',
        'collation'      => 'utf8mb4_unicode_ci',
        'prefix'         => '',
        'prefix_indexes' => true,
        'strict'         => false,
        'engine'         => null,
        'options'        => extension_loaded('pdo_mysql') ? array_filter([
            PDO::MYSQL_ATTR_SSL_CA     => env('MYSQL_ATTR_SSL_CA'),
            PDO::ATTR_EMULATE_PREPARES => true,
            PDO::MYSQL_ATTR_COMPRESS   => true,
        ]) : [],
    ],

HR_DB_HOST     = 
HR_DB_PORT     = 
HR_DB_DATABASE = 
HR_DB_USERNAME = 
HR_DB_PASSWORD = 
bash
php artisan vendor:publish

php artisan personnel:install

php artisan migrate