mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
8a28eb1790
This reverts merge request !5
19 lines
392 B
PHP
19 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Classes\Service\Documents;
|
|
|
|
|
|
class RouteToNameDocuments
|
|
{
|
|
|
|
/**
|
|
* @param array $documents
|
|
* @param string $path
|
|
* @return array
|
|
*/
|
|
public function execute(array $documents, string $path): array {
|
|
return array_map(function($value) use($path) {
|
|
return str_replace( 'storage/'.$path,"", $value);
|
|
}, $documents);
|
|
}
|
|
} |