PHP code example of mahmoud-mhamed / laravel-dblens
1. Go to this page and download the library: Download mahmoud-mhamed/laravel-dblens 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/ */
mahmoud-mhamed / laravel-dblens example snippets
Route::middleware([
\Stancl\Tenancy\Middleware\InitializeTenancyByDomain::class,
\Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains::class,
])->group(function () {
// DbLens auto-registers under /dblens for any group it's mounted in.
// No code needed — the package's service provider already loaded its
// routes against the current route() context.
});