PHP code example of esameisa / check-git-branch-middleware
1. Go to this page and download the library: Download esameisa/check-git-branch-middleware 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/ */
esameisa / check-git-branch-middleware example snippets
sh
php artisan vendor:publish --provider="esameisa\CheckGitBranchMiddleware\CheckGitBranchMiddlewareServiceProvider" --tag="config"
sh
protected $routeMiddleware = [
// Other middleware...
'check.git.branch' => \esameisa\CheckGitBranchMiddleware\CheckGitBranchMiddleware::class,
];
sh
Route::middleware(['check.git.branch'])->group(function () {
Route::get('/your-route', 'YourController@yourMethod');
});