Middleware
To restrict access to routes only to authenticated users, use the XeroAuthenticated middleware.
Add XeroAuthenticated to routes to ensure the user is authenticated:
Route::middleware(['auth', 'XeroAuthenticated'])->group(function () {
To access the token model reference this model:
use Dcblogdev\Xero\Models\XeroToken;