for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helldar\LaravelLangPublisher\Services\Processors;
use Helldar\LaravelLangPublisher\Facades\Config;
use Helldar\LaravelLangPublisher\Facades\File;
use Helldar\LaravelLangPublisher\Traits\Processors\Publishable;
use Illuminate\Support\Arr;
final class PublishPhp extends BaseProcessor
{
use Publishable;
protected function publish(): void
foreach (File::files($this->sourcePath()) as $file) {
$this->publishFile($file);
}
protected function excluded(array $array, string $key): array
$keys = Config::getExclude($key, []);
return Arr::only($array, $keys);