for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Laravel\Forge\Sites\Commands\Deployment;
use Laravel\Forge\Server;
use Psr\Http\Message\ResponseInterface;
use Laravel\Forge\Sites\Commands\SiteResourceCommand;
class GetDeploymentScriptCommand extends SiteResourceCommand
{
/**
* Site resource path.
*
* @return string
*/
public function siteResourcePath()
return 'deployment/script';
}
* HTTP request method.
public function requestMethod()
return 'GET';
* Handle command response.
* @param \Psr\Http\Message\ResponseInterface $response
* @param \Laravel\Forge\Server $server
public function handleResponse(ResponseInterface $response, Server $server)
return (string) $response->getBody();