tndjx/xero-manager

A Laravel Nova tool.

1.0.1 2023-06-18 11:19 UTC

This package is auto-updated.

Last update: 2024-10-18 14:05:08 UTC


README

GitHub license Packagist Downloads Latest Version on Packagist

Intro

Nova XeroManager is a package based on laravel-xero-oauth2

It is a simple way that helps you manage your connection to xero.com

Requirements:

  • PHP 8.0 or higher
  • Nova 4

Installation

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!

Restricting Access

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();
        }),
    ];
}

Screenshot

screenshot.png

License

This software is released under The MIT License (MIT).