PHP code example of thotam / thotam-hr

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

    

thotam / thotam-hr example snippets


edit Route::middleware(['web', 'auth', 'CheckAccount', 'CheckHr', 'CheckMail']) in App\Providers\RouteServiceProvider

Add "hr_key" to fillable of User Models

Add "Thotam\ThotamHr\Traits\HasHrTrait" to User Models

Add 'CheckHr' => Thotam\ThotamHr\Http\Middleware\CheckHR::Class To App\Http\Kernel.php in $routeMiddleware
Add 'CheckInfo' => Thotam\ThotamHr\Http\Middleware\CheckInfo::Class To App\Http\Kernel.php in $routeMiddleware

DropboxAppkey=""
DropboxAppsecret=""
DropboxRefreshToken=""

php artisan migrate