syehan/telescope-nova

A Laravel Nova tool.

v1.0.3 2023-02-10 15:43 UTC

This package is auto-updated.

Last update: 2024-04-10 18:07:28 UTC


README

An extension Laravel Lifecycle embedding Telescope to Nova Admin Panel.

Requirements

  • PHP 8.0 or higher
  • Nova 4

Installation

You can install the package via composer:

composer require syehan/telescope-nova

Usage

To use this tools just registering in NovaServiceProvider.php like this :

<?php

namespace App\Providers;

use Laravel\Nova\{Nova, NovaApplicationServiceProvider, Menu};
use Syehan\TelescopeNova\TelescopeNova;

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();
    }
    
    /**
     * Get the tools that should be listed in the Nova sidebar.
     *
     * @return array
     */
    public function tools()
    {
        return [
            new TelescopeNova // <- JUST ADD LIKE THIS
         ];
    }
}