PHP code example of sushi-market / laravel-info
1. Go to this page and download the library: Download sushi-market/laravel-info 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/ */
sushi-market / laravel-info example snippets
use DF\LaravelInfo\Contracts\Section;
class QueueSection implements Section
{
public function title(): string
{
return 'Queue';
}
public function data(): array
{
return [
'Driver' => config('queue.default'),
'Failed jobs' => \DB::table('failed_jobs')->count(),
];
}
}
use DF\LaravelInfo\LaravelInfo;
public function boot(): void
{
app(LaravelInfo::class)->addSection(new QueueSection());
}