PHP code example of spizian / wizardtube

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

    

spizian / wizardtube example snippets


public function handle(Request $request, Closure $next): Response
{
    if ($request->getHttpHost() != env('DOMAIN_SITE')) {
        return response('Create message here'); // Change respond with what you want.
    }
    return $next($request);
}

use App\Http\Middleware\CheckDomain;

Route::middleware(CheckDomain::class)->group(function () {
    // Your routes here
});
sh
php artisan make:middleware CheckDomain