xxxxxxxxxx
composer require barryvdh/laravel-debugbar --dev
// config/app.php
// ServiceProviders
Barryvdh\Debugbar\ServiceProvider::class,
// Facades
'Debugbar' => Barryvdh\Debugbar\Facade::class,
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
xxxxxxxxxx
composer require barryvdh/laravel-debugbar --dev
Add the --dev to make it visible
xxxxxxxxxx
composer require barryvdh/laravel-debugbar --dev
//for new laravel version no need to add any settings.
Note:
The Debugbar will be enabled when APP_DEBUG is true in .env file.
xxxxxxxxxx
# with auto-discovery:
composer require barryvdh/laravel-debugbar --dev
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
# without auto-discovery:
# If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Barryvdh\Debugbar\ServiceProvider::class,
# If you want to use the facade to log messages, add this to your facades in app.php:
'Debugbar' => Barryvdh\Debugbar\Facades\Debugbar::class,
# The profiler is enabled by default, if you have APP_DEBUG=true. You can override that in the config (debugbar.enabled) or by setting DEBUGBAR_ENABLED in your .env. See more options in config/debugbar.php You can also set in your config if you want to include/exclude the vendor files also (FontAwesome, Highlight.js and jQuery). If you already use them in your site, set it to false. You can also only display the js or css vendors, by setting it to 'js' or 'css'. (Highlight.js requires both css + js, so set to true for syntax highlighting)
# Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
# Laravel with Octane:
# Make sure to add LaravelDebugbar to your flush list in config/octane.php.
'flush' => [
\Barryvdh\Debugbar\LaravelDebugbar::class,
],
# Lumen:
For Lumen, register a different Provider in bootstrap/app.php:
if (env('APP_DEBUG')) {
$app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}
# To change the configuration, copy the file to your config folder and enable it:
$app->configure('debugbar');
#
# Usage
# You can now add messages using the Facade (when added), using the PSR-3 levels (debug, info, notice, warning, error, critical, alert, emergency):
Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');
# And start/stop timing:
Debugbar::startMeasure('render','Time for rendering');
Debugbar::stopMeasure('render');
Debugbar::addMeasure('now', LARAVEL_START, microtime(true));
Debugbar::measure('My long operation', function() {
// Do something…
});
# Or log exceptions:
try {
throw new Exception('foobar');
} catch (Exception $e) {
Debugbar::addThrowable($e);
}
xxxxxxxxxx
APP_DEBUG=false # No error reporting at all
or
DEBUGBAR_ENABLED=false # deguger is disabled but error reporting works
xxxxxxxxxx
composer require barryvdh/laravel-debugbar
//app.php
Barryvdh\Debugbar\ServiceProvider::class,
'Debugbar' => Barryvdh\Debugbar\Facade::class,
xxxxxxxxxx
version: '3.8'
services:
anythingllm:
image: mintplexlabs/anythingllm
container_name: anythingllm
ports:
- "3001:3001"
cap_add:
- SYS_ADMIN
environment:
# Adjust for your environment
- STORAGE_DIR=/app/server/storage
- JWT_SECRET="make this a large list of random numbers and letters 20+"
- LLM_PROVIDER=ollama
- OLLAMA_BASE_PATH=http://127.0.0.1:11434
- OLLAMA_MODEL_PREF=llama2
- OLLAMA_MODEL_TOKEN_LIMIT=4096
- EMBEDDING_ENGINE=ollama
- EMBEDDING_BASE_PATH=http://127.0.0.1:11434
- EMBEDDING_MODEL_PREF=nomic-embed-text:latest
- EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
- VECTOR_DB=lancedb
- WHISPER_PROVIDER=local
- TTS_PROVIDER=native
- PASSWORDMINCHAR=8
# Add any other keys here for services or settings
# you can find in the docker/.env.example file
volumes:
- anythingllm_storage:/app/server/storage
restart: always
volumes:
anythingllm_storage:
driver: local
driver_opts:
type: none
o: bind
device: /path/on/local/disk