PHP code example of marshmallow / laravel-nova-linear

1. Go to this page and download the library: Download marshmallow/laravel-nova-linear 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/ */

    

marshmallow / laravel-nova-linear example snippets


// app/Nova/LinearIssue.php

namespace App\Nova;

use LaravelNovaLinear\Nova\LinearIssue as MarshmallowLinearIssue;

class LinearIssue extends MarshmallowLinearIssue
{
    // Yes, this is everything we need.
}



// app/Providers/NovaServiceProvider.php

public function boot()
{
    parent::boot();

    Nova::mainMenu(function (Request $request) {
        return [
            // ...
            MenuSection::make(__('Issues'))->icon('fire')->path('/resources/linear-issues')
        ];
    });
}
bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"
bash
php artisan vendor:publish --tag="nova-linear-migrations"
php artisan migrate
bash
php artisan linear:generate-issue-templates