😁2.6.2.2 Create Folder Helpers & include files (ok)
C:\xampp82\htdocs\lva2\app\Helpers\app.php
<?php
declare(strict_types=1);
namespace App\Helpers;
use Rawilk\FormComponents\Support\TimeZoneRegionEnum;
function timezoneSubsets(): array
{
return [
TimeZoneRegionEnum::General->value,
TimeZoneRegionEnum::America->value,
];
}
C:\xampp82\htdocs\lva2\app\Helpers\helpers.php
<?php
declare(strict_types=1);
use Symfony\Component\Finder\Finder;
$files = Finder::create()
->files()
->in(__DIR__)
->depth(0)
->name('*.php');
foreach ($files as $file) {
require_once $file;
}
C:\xampp82\htdocs\lva2\app\Helpers\routes.php
Quan trọng nhất là:
Previous2.6.2.1 Create Function helpers (ok)Next2.6.2.3 Sử dụng copyfiles, copy-assets copy thư mục fonts sang thư mục dist (ok)
Last updated
Was this helpful?