Skip to content

code16/sharp-fathom-dashboard

Repository files navigation

Sharp Fathom Dashboard

A Laravel package designed to be used with Sharp to display a Fathom dashboard.

Installation

You can install the package via composer:

composer require code16/sharp-fathom-dashboard

You can publish and run the migrations with:

You can publish the config file with:

php artisan vendor:publish --tag="sharp-fathom-dashboard-config"

Usage

Setup required environment variables

FATHOM_API_KEY=
FATHOM_SITE_ID=
#Optional, will display a dashboard command to open Fathom
FATHOM_ACCESS_URL= 

Register the Dashboard Sharp's entity in your Sharp Configuration's Service Provider

$config
    ->setName('My Project')
    // ...
    ->declareEntity(Code16\SharpFathomDashboard\Sharp\Entities\FathomDashboardEntity::class);

Add the dashboard in your Sharp's Menu

    return $this
        // ...
        ->addEntityLink(Code16\SharpFathomDashboard\Sharp\Entities\FathomDashboardEntity::class, 'Visits', 'fas-chart-line');

Done !

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •