PHP code example of opscale-co / nova-service-desk

1. Go to this page and download the library: Download opscale-co/nova-service-desk 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/ */

    

opscale-co / nova-service-desk example snippets


// in app/Providers/NovaServiceProvider.php
public function tools()
{
    return [
        // ...
        new \Opscale\NovaServiceDesk\Tool(),
    ];
}

return [

    // Workflow transition rules + custom priority scoring per template
    'workflow_resolvers' => [
        // 'TEC' => \App\Resolvers\TechnicalSupportWorkflowResolver::class,
    ],

];

  $this->app->singleton(ServiceResolver::class);
  $this->app->bind(RequiresService::class, ServiceResolver::class);
  $this->app->bind(ProvidesService::class, ServiceResolver::class);
  
bash
php artisan vendor:publish --tag="nova-service-desk-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="nova-service-desk-config"