for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Laravel\Forge\Servers\Providers;
use InvalidArgumentException;
class Custom extends Provider
{
/**
* @{inheritdoc}
*/
public function provider()
return 'custom';
}
public function regionAvailable(string $region)
throw new InvalidArgumentException('Custom provider does not support any region.');
public function validate()
$errors = [];
if (empty($this->payload['ip_address'])) {
$errors[] = 'ip_address';
if (empty($this->payload['private_ip_address'])) {
$errors[] = 'private_ip_address';
return count($errors) > 0 ? $errors : true;