PHP code example of opentech / directories
1. Go to this page and download the library: Download opentech/directories library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
opentech / directories example snippets
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Opentech\Directories\ApplicationBuilderFactory;
$builder = ApplicationBuilderFactory::make(__DIR__);
return $builder
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();
bash
php artisan vendor:publish --provider="Opentech\Directories\DirectoriesServiceProvider" --tag="config"