PHP code example of tomatophp / filament-issues

1. Go to this page and download the library: Download tomatophp/filament-issues 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/ */

    

tomatophp / filament-issues example snippets


->plugin(\TomatoPHP\FilamentIssues\FilamentIssuesPlugin::make())

return [

    /*
    |--------------------------------------------------------------------------
    | Organizations
    |--------------------------------------------------------------------------
    |
    | List of organizations to search for issues.
    |
    */
    'orgs' => [],

    /*
    |--------------------------------------------------------------------------
    | Repositories
    |--------------------------------------------------------------------------
    |
    | List of repositories to search for issues.
    |
    */
    'repos' => [],

]

'github' => [
    'username' => env('GITHUB_USERNAME'),
    'token' => env('GITHUB_TOKEN'),
],

public function boot() 
{
    FilamentIssues::register([
        'tomatophp/filament-issues',
        'tomatophp/filament-cms',
        'tomatophp/filament-pms',
    ]);
}

public function boot() 
{
    FilamentIssues::register(
        fn() => Post::query()
            ->where('type', 'open-source')
            ->pluck('meta_url')
            ->map(
                fn($item) => str($item)
                    ->remove('https://github.com/')
                    ->remove('https://www.github.com/')
                    ->toString()
            )
            ->toArray()
   );
} 
bash
php artisan filament-issues:install
bash
php artisan vendor:publish --tag="filament-issues-config"
bash
php artisan config:cache
bash
php artisan filament-issues:refresh
bash
php artisan vendor:publish --tag="filament-issues-config"
bash
php artisan vendor:publish --tag="filament-issues-views"
bash
php artisan vendor:publish --tag="filament-issues-lang"
bash
php artisan vendor:publish --tag="filament-issues-migrations"