PHP code example of dcodegroup / laravel-myob-employee
1. Go to this page and download the library: Download dcodegroup/laravel-myob-employee 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/ */
dcodegroup / laravel-myob-employee example snippets
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'myob_employee_id',
'myob_employee_payroll_details_id',
'myob_employee_payment_details_id',
'myob_employee_standard_pay_id',
...
];
use Dcodegroup\LaravelMyobEmployee\Contracts\MyobEmployeeUserMappings;
class User extends Authenticatable implements MyobEmployeeUserMappings
{
...
public function getMyobEmployeeNameAttribute(): string
{
return $this->name;
//return $this->first_name . ' ' . $this->last_name;
//return $this->prefered_name;
}
class User extends Authenticatable
{
use UsesMyobEmployee;
bash
php artsian laravel-myob-employee:install
bash
php artsian migrate
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.