Nova XeroManager is a package based on laravel-xero-oauth2
It is a simple way that helps you manage your connection to xero.com
- PHP 8.0 or higher
- Nova 4
To get started just install the package via composer:
composer require tndjx/xero-manager
After that register tool in NovaServiceProvider
:
public function tools()
{
return [
\Tndjx\XeroManager\XeroManager::make(),
];
}
That's it, you're ready to go!
You can restrict access to the tool by using canSee
method in NovaServiceProvider
:
public function tools()
{
return [
\Tndjx\XeroManager\XeroManager::make()->canSee(function ($request) {
return $request->user()->isAdmin();
}),
];
}
This software is released under The MIT License (MIT).