PHP code example of tpetry / laravel-multiregion

1. Go to this page and download the library: Download tpetry/laravel-multiregion 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/ */

    

tpetry / laravel-multiregion example snippets


use Tpetry\MultiRegion\Pest\ExpectsRoutes;

pest()->extend(TestCase::class)
    ->use(ExpectsRoutes::class)
    ->in('Feature', 'Arch');

arch()
    ->expectRoutes()
    ->toUseMultiRegionMiddleware()
    ->ignoring([
        '/up',
        '/storage/*',
        'crm.page.*',
    ]);
bash
php artisan vendor:publish --tag="multiregion-config"