for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Basis\Job\Module;
use Basis\Job;
use Exception;
class Call extends Job
{
public $space;
public $id;
public $method;
public function run()
$instance = $this->findOrFail($this->space, $this->id);
if (!method_exists($instance, $this->method)) {
throw new Exception("Method $this->method not defined");
}
$method = $this->method;
return [
'result' => $instance->$method(),
];