PHP code example of syehan / telescope-nova
1. Go to this page and download the library: Download syehan/telescope-nova library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
syehan / telescope-nova example snippets
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
];
}
}