vzool/horizon
Composer 安装命令:
composer require vzool/horizon
包简介
Dashboard and code-driven configuration for Laravel queues.
README 文档
README
Introduction
Horizon provides a beautiful dashboard and code-driven configuration for your Laravel powered Redis queues. Horizon allows you to easily monitor key metrics of your queue system such as job throughput, runtime, and job failures.
All of your worker configuration is stored in a single, simple configuration file, allowing your configuration to stay in source control where your entire team can collaborate.
Setup
- Install by composer (required PHP 7.1+)
composer require vzool/horizon
- Add the following to
config/app.php
'providers' => [ // .. Vzool\Horizon\HorizonServiceProvider::class, ], 'aliases' => [ // .. "Horizon" => Vzool\Horizon\Horizon::class, ]
- Do
artisancommand
php artisan vendor:publish
- Add the follow to
app\Providers\AppServiceProvider.phpin order to secure/horizonend point.
<?php namespace App\Providers; // .. use Vzool\Horizon\Horizon; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // .. // Add Horizon authentication [IGNORE IN DEV] Horizon::auth(function ($request) { // allow admins only to see this page // return \Auth::user()->is_admin; // or return any true / false }); } /** * Register any application services. * * @return void */ public function register() { // } }
- Browse
/horizonand have fun with your X-Ray Vision. ;)
Official Documentation
Documentation for Horizon can be found on the Laravel website.
License
Laravel Horizon is open-sourced software licensed under the MIT license
统计信息
- 总下载量: 161
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-19