PHP code example of zpm-packages / server-access-filament
1. Go to this page and download the library: Download zpm-packages/server-access-filament 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/ */
zpm-packages / server-access-filament example snippets
use Filament\Panel;
use ZPMPackages\FilamentSshManagement\FilamentSshManagementPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(FilamentSshManagementPlugin::make());
}
use App\Providers\Filament\AdminPanelProvider;
use Filament\Panel;
use ZPMPackages\FilamentSshManagement\FilamentSshManagementPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->plugin(FilamentSshManagementPlugin::make());
}
}
namespace App\Support\Ssh;
class SshManagerResolver extends \ZPMPackages\LaravelSshManagement\Services\SshManagerResolver
{
}