PHP code example of hsndmr / cappadocia-viewer-for-laravel
1. Go to this page and download the library: Download hsndmr/cappadocia-viewer-for-laravel 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/ */
hsndmr / cappadocia-viewer-for-laravel example snippets
cappadocia()->watchQueries();
User::latest()->first();
cappadocia()->stopWatchingQueries();
// This query will not be shown in the viewer
User::first()->first();
` php
cappadocia()->watchJobs();
CappadociaViewerJob::dispatchSync('viewer');
cappadocia()->stopWatchingJobs();
// This job will not be shown in the viewer
CappadociaViewerJob::dispatchSync('another viewer');
` php
CappadociaViewerJob::dispatch('viewer');
` php
cappadocia('This is custom message')
->send([
'custom' => 'data',
]);
cappadocia('This is custom message with Badge')
->setBadge('Badge')
->send([
'custom' => 'data',
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.