src/Tool.php
/**
     * Perform any tasks that need to happen when the tool is booted.
     */
Perform any tasks that need to happen when the tool is booted.
Perform any tasks that need to happen when the tool is booted .
public function boot(): void
    {
        Nova::script('nova-blog', __DIR__ . '/../dist/nova.js');
        $models = config('nova-blog.models');
        $resources = config('nova-blog.resources');
        foreach ($resources as $name => $class) {
            if ($name !== 'user') {
                $class::$model = $models[$name];
                Nova::resources([$class]);
            }
        }
    }
public function boot ( ) : void { Nova :: script ( 'nova-blog' , __DIR__ . '/../dist/nova.js' ) ; $ models = config ( 'nova-blog.models' ) ; $ resources = config ( 'nova-blog.resources' ) ; foreach ( $ resources as $ name => $ class ) { if ( $ name !== 'user' ) { $ class :: $ model = $ models [ $ name ] ; Nova :: resources ( [ $ class ] ) ; } } }
Perform any tasks that need to happen when the tool is booted.
Perform any tasks that need to happen when the tool is booted .