PHP code example of genealabs / nova-horizon
1. Go to this page and download the library: Download genealabs/nova-horizon 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/ */
genealabs / nova-horizon example snippets
namespace App\Providers;
use GeneaLabs\NovaHorizon\NovaHorizon;
use Laravel\Nova\NovaApplicationServiceProvider;
class NovaServiceProvider extends NovaApplicationServiceProvider
{
//...
public function tools()
{
return [
//...
new NovaHorizon,
];
}
//...
}
MenuSection::make('Horizon')
->path('/nova-horizon')
->icon('server')