This package is auto-updated.

Last update: 2025-03-14 09:41:05 UTC


README

Install

composer require friendsofwebso/facade

Use

use Illuminate\Filesystem\Filesystem;
use Websovn\Facades\LaraApp;

require_once 'vendor/autoload.php';

$laraApp = new LaraApp(
    dirname(__DIR__),
    [
        'File',
        'Response',
        'Storage',
        'Validator',
        'Http',
        'Request',
        'URL',
        'Date',
    ]
);

// Đăng ký Smarty (nếu cần)
$laraApp->withSmartyRegister();

/**
 * Tạo File providers.php để tải thêm dịch vụ (nếu có)
 */

// foreach ((new Filesystem())->requireOnce(__DIR__.'/providers.php') as $provider) {
//     $laraApp->registerDeferredProvider($provider);
// }

$laraApp->bootstrap();
  • providers.php
<?php

return [
    PipelineServiceProvider::class,
];