1. Go to this page and download the library: Download kreatif/statamic-cp-toolbar 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/ */
kreatif / statamic-cp-toolbar example snippets
return [
// Kill switch - false hides the toolbar everywhere, for everyone.
'enabled' => env('CP_TOOLBAR_ENABLED', true),
// Which auth guard counts as "logged in". Defaults to Statamic's own CP
// guard. If your app also has a separate front-end member/subscriber
// login on its own guard, leave this pointed at the CP guard so
// subscribers never see an internal "edit in CP" link.
'guard' => env('CP_TOOLBAR_GUARD', 'web'),
// bottom-right, bottom-left, top-right or top-left.
'position' => env('CP_TOOLBAR_POSITION', 'bottom-right'),
];