option('dir') ?? 'dist'); if (!file_exists($localPath) || !is_dir($localPath)) { $this->warn(sprintf('The directory %s does not exists.', $path)); return 1; } $edgePath = sprintf('/%s', config('bunny.storage.username')); $fileCompare->compare($localPath, $edgePath); return 0; } /** * Define the command's schedule. * * @param Schedule $schedule * @return void */ public function schedule(Schedule $schedule): void { // $schedule->command(static::class)->everyMinute(); } }