1. Go to this page and download the library: Download romanzipp/laravel-blockade 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/ */
romanzipp / laravel-blockade example snippets
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use romanzipp\Blockade\Http\Middleware\BlockadeMiddleware;
class Kernel extends HttpKernel
{
// Globally for all routes
protected $middleware = [
// ...
BlockadeMiddleware::class,
];
// In a single middleware group
protected $middlewareGroups = [
'web' => [
// ...
BlockadeMiddleware::class,
]
];
// As named middleware, applied in your routes file
protected $routeMiddleware = [
// ...
'blockade' => BlockadeMiddleware::class,
];
}
php artisan blockade:install
php artisan blockade:install --update
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.