for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Laravel\Forge\Sites;
class Worker extends SiteResource
{
/**
* Resource type.
*
* @return string
*/
public static function resourceType()
return 'worker';
}
* Resource path (relative to Server URL).
public function resourcePath()
return 'sites/'.$this->getSite()->id().'/workers';
* Queue connection.
* @return string|null
public function connection()
return $this->getData('connection');
* Worker timeout.
* @return int
public function timeout(): int
return intval($this->getData('timeout'));
* Max tries count.
public function maxTries(): int
return intval($this->getData('tries'));
* Determines if worker is daemon.
* @return bool
public function daemon(): bool
return intval($this->getData('daemon')) === 1;