Download the PHP package dcodegroup/laravel-xero-employee without Composer
On this page you can find all versions of the php package dcodegroup/laravel-xero-employee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcodegroup/laravel-xero-employee
More information about dcodegroup/laravel-xero-employee
Files in dcodegroup/laravel-xero-employee
Package laravel-xero-employee
Short Description This package provides base functionality for linking a user with Xero
License MIT
Informations about the package laravel-xero-employee
Laravel Xero Timesheet Sync
This package provides the standard xero functionality for syncing Xero Employee ID with users and assigning pay rates to users.
Installation
You can install the package via composer:
Then run the install command.
This will publish the configuration and migrations file
Run the migrations
Configuration
After running install the following fields will be added to the users table.
- xero_employee_id
- xero_default_earnings_rate_id
- xero_time_and_a_half_earnings_rate_id
- xero_double_time_earnings_rate_id
You will need to add these fields to your fillable array within the User::class
model
You also need to add the following interface to the User::class
model.
You should then implement the methods defined in the contract. eg Like below but what ever your using
The assumption is you have already synced the payroll details from the dcodegroup/laravel-xero-payroll-au.
There is a second command you can use to automatically populate the fields added for earnings rate to default to those you have already configured within dcodegroup/laravel-xero-payroll-au. You can run this multiple times as you get new users as it will only update users that have no values.
You should add the following trait to the Users model.
This package provides a route that can be used to provide an endpoint to dispatch the SyncXeroEmployee job.
[example.com/xero-employee/{user}] xero_employee.sync Please see the config file if you wish to customise the route. This will dispatch the job for the user and sync them to your application.
All versions of laravel-xero-employee with dependencies
dcodegroup/laravel-xero-oauth Version ^1.0
dcodegroup/laravel-xero-payroll-au Version ^0.1
laravel/framework Version ^7.0|^8.0|^9.0|^10.0