for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Ping for Laravel.
*
* This class makes Ping request to a host.
* Ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.
* @author Angel Campos <[email protected]>
* @requires PHP 8.0
* @version 2.1.2
*/
namespace Acamposm\Ping\Console;
use Acamposm\Ping\ServiceProviders\PingServiceProvider;
use Illuminate\Console\Command;
class InstallPingPackageCommand extends Command
{
protected $signature = 'ping:install';
protected $description = 'Install the Ping package';
public function handle()
$this->info('Installing PingPackage...');
$this->info('Publishing configuration...');
$this->call('vendor:publish', [
'--provider' => PingServiceProvider::class,
'--tag' => 'config',
]);
$this->info('Installed PingPackage');
}