Seán McCabe
Seán McCabe
You should post that question in the calcinai/xero-php Issues section. This package just allows you to use the calcinai package in an eloquent like syntax. The above code you posted...
That is up to the user, some people prefer to save things as json, others as seperate strings. Personally I save it as a json string, and then decode it...
You need to follow the instructions on [calcinai/xero-php](https://github.com/calcinai/xero-php), this package is essentially a Laravel wrapper for that and allows you to use eloquent syntax for retrieving Xero objects.
> `$contact = $this->xero->contacts()->find($xero_auth->contact_id);` Is never going to work. You are asking $xero_auth to provide the contact id, which it doesn't have as you are asking it to find one....
> Hello,i am new to Xero and i am trying to get my head around how to go about things,i am asking this here because i have exhausted my options...
Its literaaly on the front page as a function in the code block where you got the first part. [here](https://github.com/langleyfoxall/xero-laravel#oauth-20-flow) The token lasts 30 minutes, so you need to ensure...
Yes you need to call that function, safest is to call it before every Xero connection so ensure you have an active token. No it doesn't. It just gives you...
> @seanmccabe My system has the correct contact id in $xero_auth as it is object of my db modal getting contact id from database. The error says you dont have...
The errors aren't code related, you are trying to access a resource you don't have permission to view. It is connecting to Xero, or you wouldnt get that error. So...
Anyone get a second account going?