user = $user; $this->data = $data; } public function file(string $os): string { return File::get(base_path('system/commands/common/update-cron-jobs.sh')); } public function content(string $os): string { $command = Str::replace('__user__', $this->user, $this->file($os)); return Str::replace('__data__', $this->data, $command); } }