{"instruction": "Explain the purpose and usage of the laravel library based on its documentation.", "output": "
\n\n\n\n## About Laravel\n\nLaravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:\n\n- [Simple, fast routing engine](https://laravel.com/docs/routing).\n- [Powerful dependency injection container](https://laravel.com/docs/container).\n- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.\n- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).\n- Database agnostic [schema migrations](https://laravel.com/docs/migrations).\n- [Robust background job processing](https://laravel.com/docs/queues).\n- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).\n\nLaravel is accessible, powerful, and provides tools required for large, robust applications.\n\n## Learning Laravel\n\nLaravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application.\n\nIf you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.\n\n## Laravel Sponsors\n\nWe would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).\n\n### Premium Partners\n\n- **[Vehikl](https://vehikl.com)**\n- **[Tighten Co.](https://tighten.co)**\n- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**\n- **[64 Robots](https://64robots.com)**\n- **[Curotec](https://www.curotec.com/services/technologies/laravel)**\n- **[DevSquad](https://devsquad.com/hire-laravel-developers)**\n- **[Redberry](https://redberry.international/laravel-development)**\n- **[Active Logic](https://activelogic.com)**\n\n## Contributing\n\nThank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).\n\n## Code of Conduct\n\nIn order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.\n\n## License\n\nThe Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n", "source": "github_readme", "repo": "https://github.com/laravel/laravel", "path": "README.md"} {"instruction": "Provide the default configuration for app.php in laravel.", "output": " env('APP_NAME', 'Laravel'),\n\n /*\n |--------------------------------------------------------------------------\n | Application Environment\n |--------------------------------------------------------------------------\n |\n | This value determines the \"environment\" your application is currently\n | running in. This may determine how you prefer to configure various\n | services the application utilizes. Set this in your \".env\" file.\n |\n */\n\n 'env' => env('APP_ENV', 'production'),\n\n /*\n |--------------------------------------------------------------------------\n | Application Debug Mode\n |--------------------------------------------------------------------------\n |\n | When your application is in debug mode, detailed error messages with\n | stack traces will be shown on every error that occurs within your\n | application. If disabled, a simple generic error page is shown.\n |\n */\n\n 'debug' => (bool) env('APP_DEBUG', false),\n\n /*\n |--------------------------------------------------------------------------\n | Application URL\n |--------------------------------------------------------------------------\n |\n | This URL is used by the console to properly generate URLs when using\n | the Artisan command line tool. You should set this to the root of\n | the application so that it's available within Artisan commands.\n |\n */\n\n 'url' => env('APP_URL', 'http://localhost'),\n\n /*\n |--------------------------------------------------------------------------\n | Application Timezone\n |--------------------------------------------------------------------------\n |\n | Here you may specify the default timezone for your application, which\n | will be used by the PHP date and date-time functions. The timezone\n | is set to \"UTC\" by default as it is suitable for most use cases.\n |\n */\n\n 'timezone' => 'UTC',\n\n /*\n |--------------------------------------------------------------------------\n | Application Locale Configuration\n |--------------------------------------------------------------------------\n |\n | The application locale determines the default locale that will be used\n | by Laravel's translation / localization methods. This option can be\n | set to any locale for which you plan to have translation strings.\n |\n */\n\n 'locale' => env('APP_LOCALE', 'en'),\n\n 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),\n\n 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),\n\n /*\n |--------------------------------------------------------------------------\n | Encryption Key\n |--------------------------------------------------------------------------\n |\n | This key is utilized by Laravel's encryption services and should be set\n | to a random, 32 character string to ensure that all encrypted values\n | are secure. You should do this prior to deploying the application.\n |\n */\n\n 'cipher' => 'AES-256-CBC',\n\n 'key' => env('APP_KEY'),\n\n 'previous_keys' => [\n ...array_filter(\n explode(',', (string) env('APP_PREVIOUS_KEYS', ''))\n ),\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Maintenance Mode Driver\n |--------------------------------------------------------------------------\n |\n | These configuration options determine the driver used to determine and\n | manage Laravel's \"maintenance mode\" status. The \"cache\" driver will\n | allow maintenance mode to be controlled across multiple machines.\n |\n | Supported drivers: \"file\", \"cache\"\n |\n */\n\n 'maintenance' => [\n 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),\n 'store' => env('APP_MAINTENANCE_STORE', 'database'),\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\app.php"} {"instruction": "Provide the default configuration for auth.php in laravel.", "output": " [\n 'guard' => env('AUTH_GUARD', 'web'),\n 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Authentication Guards\n |--------------------------------------------------------------------------\n |\n | Next, you may define every authentication guard for your application.\n | Of course, a great default configuration has been defined for you\n | which utilizes session storage plus the Eloquent user provider.\n |\n | All authentication guards have a user provider, which defines how the\n | users are actually retrieved out of your database or other storage\n | system used by the application. Typically, Eloquent is utilized.\n |\n | Supported: \"session\"\n |\n */\n\n 'guards' => [\n 'web' => [\n 'driver' => 'session',\n 'provider' => 'users',\n ],\n ],\n\n /*\n |--------------------------------------------------------------------------\n | User Providers\n |--------------------------------------------------------------------------\n |\n | All authentication guards have a user provider, which defines how the\n | users are actually retrieved out of your database or other storage\n | system used by the application. Typically, Eloquent is utilized.\n |\n | If you have multiple user tables or models you may configure multiple\n | providers to represent the model / table. These providers may then\n | be assigned to any extra authentication guards you have defined.\n |\n | Supported: \"database\", \"eloquent\"\n |\n */\n\n 'providers' => [\n 'users' => [\n 'driver' => 'eloquent',\n 'model' => env('AUTH_MODEL', App\\Models\\User::class),\n ],\n\n // 'users' => [\n // 'driver' => 'database',\n // 'table' => 'users',\n // ],\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Resetting Passwords\n |--------------------------------------------------------------------------\n |\n | These configuration options specify the behavior of Laravel's password\n | reset functionality, including the table utilized for token storage\n | and the user provider that is invoked to actually retrieve users.\n |\n | The expiry time is the number of minutes that each reset token will be\n | considered valid. This security feature keeps tokens short-lived so\n | they have less time to be guessed. You may change this as needed.\n |\n | The throttle setting is the number of seconds a user must wait before\n | generating more password reset tokens. This prevents the user from\n | quickly generating a very large amount of password reset tokens.\n |\n */\n\n 'passwords' => [\n 'users' => [\n 'provider' => 'users',\n 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),\n 'expire' => 60,\n 'throttle' => 60,\n ],\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Password Confirmation Timeout\n |--------------------------------------------------------------------------\n |\n | Here you may define the number of seconds before a password confirmation\n | window expires and users are asked to re-enter their password via the\n | confirmation screen. By default, the timeout lasts for three hours.\n |\n */\n\n 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\auth.php"} {"instruction": "Provide the default configuration for cache.php in laravel.", "output": " env('CACHE_STORE', 'database'),\n\n /*\n |--------------------------------------------------------------------------\n | Cache Stores\n |--------------------------------------------------------------------------\n |\n | Here you may define all of the cache \"stores\" for your application as\n | well as their drivers. You may even define multiple stores for the\n | same cache driver to group types of items stored in your caches.\n |\n | Supported drivers: \"array\", \"database\", \"file\", \"memcached\",\n | \"redis\", \"dynamodb\", \"octane\",\n | \"failover\", \"null\"\n |\n */\n\n 'stores' => [\n\n 'array' => [\n 'driver' => 'array',\n 'serialize' => false,\n ],\n\n 'database' => [\n 'driver' => 'database',\n 'connection' => env('DB_CACHE_CONNECTION'),\n 'table' => env('DB_CACHE_TABLE', 'cache'),\n 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),\n 'lock_table' => env('DB_CACHE_LOCK_TABLE'),\n ],\n\n 'file' => [\n 'driver' => 'file',\n 'path' => storage_path('framework/cache/data'),\n 'lock_path' => storage_path('framework/cache/data'),\n ],\n\n 'memcached' => [\n 'driver' => 'memcached',\n 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),\n 'sasl' => [\n env('MEMCACHED_USERNAME'),\n env('MEMCACHED_PASSWORD'),\n ],\n 'options' => [\n // Memcached::OPT_CONNECT_TIMEOUT => 2000,\n ],\n 'servers' => [\n [\n 'host' => env('MEMCACHED_HOST', '127.0.0.1'),\n 'port' => env('MEMCACHED_PORT', 11211),\n 'weight' => 100,\n ],\n ],\n ],\n\n 'redis' => [\n 'driver' => 'redis',\n 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),\n 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),\n ],\n\n 'dynamodb' => [\n 'driver' => 'dynamodb',\n 'key' => env('AWS_ACCESS_KEY_ID'),\n 'secret' => env('AWS_SECRET_ACCESS_KEY'),\n 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),\n 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),\n 'endpoint' => env('DYNAMODB_ENDPOINT'),\n ],\n\n 'octane' => [\n 'driver' => 'octane',\n ],\n\n 'failover' => [\n 'driver' => 'failover',\n 'stores' => [\n 'database',\n 'array',\n ],\n ],\n\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Cache Key Prefix\n |--------------------------------------------------------------------------\n |\n | When utilizing the APC, database, memcached, Redis, and DynamoDB cache\n | stores, there might be other applications using the same cache. For\n | that reason, you may prefix every cache key to avoid collisions.\n |\n */\n\n 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\cache.php"} {"instruction": "Provide the default configuration for database.php in laravel.", "output": " env('DB_CONNECTION', 'sqlite'),\n\n /*\n |--------------------------------------------------------------------------\n | Database Connections\n |--------------------------------------------------------------------------\n |\n | Below are all of the database connections defined for your application.\n | An example configuration is provided for each database system which\n | is supported by Laravel. You're free to add / remove connections.\n |\n */\n\n 'connections' => [\n\n 'sqlite' => [\n 'driver' => 'sqlite',\n 'url' => env('DB_URL'),\n 'database' => env('DB_DATABASE', database_path('database.sqlite')),\n 'prefix' => '',\n 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),\n 'busy_timeout' => null,\n 'journal_mode' => null,\n 'synchronous' => null,\n 'transaction_mode' => 'DEFERRED',\n ],\n\n 'mysql' => [\n 'driver' => 'mysql',\n 'url' => env('DB_URL'),\n 'host' => env('DB_HOST', '127.0.0.1'),\n 'port' => env('DB_PORT', '3306'),\n 'database' => env('DB_DATABASE', 'laravel'),\n 'username' => env('DB_USERNAME', 'root'),\n 'password' => env('DB_PASSWORD', ''),\n 'unix_socket' => env('DB_SOCKET', ''),\n 'charset' => env('DB_CHARSET', 'utf8mb4'),\n 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),\n 'prefix' => '',\n 'prefix_indexes' => true,\n 'strict' => true,\n 'engine' => null,\n 'options' => extension_loaded('pdo_mysql') ? array_filter([\n (PHP_VERSION_ID >= 80500 ? \\Pdo\\Mysql::ATTR_SSL_CA : \\PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),\n ]) : [],\n ],\n\n 'mariadb' => [\n 'driver' => 'mariadb',\n 'url' => env('DB_URL'),\n 'host' => env('DB_HOST', '127.0.0.1'),\n 'port' => env('DB_PORT', '3306'),\n 'database' => env('DB_DATABASE', 'laravel'),\n 'username' => env('DB_USERNAME', 'root'),\n 'password' => env('DB_PASSWORD', ''),\n 'unix_socket' => env('DB_SOCKET', ''),\n 'charset' => env('DB_CHARSET', 'utf8mb4'),\n 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),\n 'prefix' => '',\n 'prefix_indexes' => true,\n 'strict' => true,\n 'engine' => null,\n 'options' => extension_loaded('pdo_mysql') ? array_filter([\n (PHP_VERSION_ID >= 80500 ? \\Pdo\\Mysql::ATTR_SSL_CA : \\PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),\n ]) : [],\n ],\n\n 'pgsql' => [\n 'driver' => 'pgsql',\n 'url' => env('DB_URL'),\n 'host' => env('DB_HOST', '127.0.0.1'),\n 'port' => env('DB_PORT', '5432'),\n 'database' => env('DB_DATABASE', 'laravel'),\n 'username' => env('DB_USERNAME', 'root'),\n 'password' => env('DB_PASSWORD', ''),\n 'charset' => env('DB_CHARSET', 'utf8'),\n 'prefix' => '',\n 'prefix_indexes' => true,\n 'search_path' => 'public',\n 'sslmode' => env('DB_SSLMODE', 'prefer'),\n ],\n\n 'sqlsrv' => [\n 'driver' => 'sqlsrv',\n 'url' => env('DB_URL'),\n 'host' => env('DB_HOST', 'localhost'),\n 'port' => env('DB_PORT', '1433'),\n 'database' => env('DB_DATABASE', 'laravel'),\n 'username' => env('DB_USERNAME', 'root'),\n 'password' => env('DB_PASSWORD', ''),\n 'charset' => env('DB_CHARSET', 'utf8'),\n 'prefix' => '',\n 'prefix_indexes' => true,\n // 'encrypt' => env('DB_ENCRYPT', 'yes'),\n // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),\n ],\n\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Migration Repository Table\n |--------------------------------------------------------------------------\n |\n | This table keeps track of all the migrations that have already run for\n | your application. Using this information, we can determine which of\n | the migrations on disk haven't actually been run on the database.\n |\n */\n\n 'migrations' => [\n 'table' => 'migrations',\n 'update_date_on_publish' => true,\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Redis Databases\n |--------------------------------------------------------------------------\n |\n | Redis is an open source, fast, and advanced key-value store that also\n | provides a richer body of commands than a typical key-value system\n | such as Memcached. You may define your connection settings here.\n |\n */\n\n 'redis' => [\n\n 'client' => env('REDIS_CLIENT', 'phpredis'),\n\n 'options' => [\n 'cluster' => env('REDIS_CLUSTER', 'redis'),\n 'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'),\n 'persistent' => env('REDIS_PERSISTENT', false),\n ],\n\n 'default' => [\n 'url' => env('REDIS_URL'),\n 'host' => env('REDIS_HOST', '127.0.0.1'),\n 'username' => env('REDIS_USERNAME'),\n 'password' => env('REDIS_PASSWORD'),\n 'port' => env('REDIS_PORT', '6379'),\n 'database' => env('REDIS_DB', '0'),\n 'max_retries' => env('REDIS_MAX_RETRIES', 3),\n 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),\n 'backoff_base' => env('REDIS_BACKOFF_BASE', 100),\n 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),\n ],\n\n 'cache' => [\n 'url' => env('REDIS_URL'),\n 'host' => env('REDIS_HOST', '127.0.0.1'),\n 'username' => env('REDIS_USERNAME'),\n 'password' => env('REDIS_PASSWORD'),\n 'port' => env('REDIS_PORT', '6379'),\n 'database' => env('REDIS_CACHE_DB', '1'),\n 'max_retries' => env('REDIS_MAX_RETRIES', 3),\n 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),\n 'backoff_base' => env('REDIS_BACKOFF_BASE', 100),\n 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),\n ],\n\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\database.php"} {"instruction": "Provide the default configuration for filesystems.php in laravel.", "output": " env('FILESYSTEM_DISK', 'local'),\n\n /*\n |--------------------------------------------------------------------------\n | Filesystem Disks\n |--------------------------------------------------------------------------\n |\n | Below you may configure as many filesystem disks as necessary, and you\n | may even configure multiple disks for the same driver. Examples for\n | most supported storage drivers are configured here for reference.\n |\n | Supported drivers: \"local\", \"ftp\", \"sftp\", \"s3\"\n |\n */\n\n 'disks' => [\n\n 'local' => [\n 'driver' => 'local',\n 'root' => storage_path('app/private'),\n 'serve' => true,\n 'throw' => false,\n 'report' => false,\n ],\n\n 'public' => [\n 'driver' => 'local',\n 'root' => storage_path('app/public'),\n 'url' => rtrim(env('APP_URL'), '/').'/storage',\n 'visibility' => 'public',\n 'throw' => false,\n 'report' => false,\n ],\n\n 's3' => [\n 'driver' => 's3',\n 'key' => env('AWS_ACCESS_KEY_ID'),\n 'secret' => env('AWS_SECRET_ACCESS_KEY'),\n 'region' => env('AWS_DEFAULT_REGION'),\n 'bucket' => env('AWS_BUCKET'),\n 'url' => env('AWS_URL'),\n 'endpoint' => env('AWS_ENDPOINT'),\n 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),\n 'throw' => false,\n 'report' => false,\n ],\n\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Symbolic Links\n |--------------------------------------------------------------------------\n |\n | Here you may configure the symbolic links that will be created when the\n | `storage:link` Artisan command is executed. The array keys should be\n | the locations of the links and the values should be their targets.\n |\n */\n\n 'links' => [\n public_path('storage') => storage_path('app/public'),\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\filesystems.php"} {"instruction": "Provide the default configuration for logging.php in laravel.", "output": " env('LOG_CHANNEL', 'stack'),\n\n /*\n |--------------------------------------------------------------------------\n | Deprecations Log Channel\n |--------------------------------------------------------------------------\n |\n | This option controls the log channel that should be used to log warnings\n | regarding deprecated PHP and library features. This allows you to get\n | your application ready for upcoming major versions of dependencies.\n |\n */\n\n 'deprecations' => [\n 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),\n 'trace' => env('LOG_DEPRECATIONS_TRACE', false),\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Log Channels\n |--------------------------------------------------------------------------\n |\n | Here you may configure the log channels for your application. Laravel\n | utilizes the Monolog PHP logging library, which includes a variety\n | of powerful log handlers and formatters that you're free to use.\n |\n | Available drivers: \"single\", \"daily\", \"slack\", \"syslog\",\n | \"errorlog\", \"monolog\", \"custom\", \"stack\"\n |\n */\n\n 'channels' => [\n\n 'stack' => [\n 'driver' => 'stack',\n 'channels' => explode(',', (string) env('LOG_STACK', 'single')),\n 'ignore_exceptions' => false,\n ],\n\n 'single' => [\n 'driver' => 'single',\n 'path' => storage_path('logs/laravel.log'),\n 'level' => env('LOG_LEVEL', 'debug'),\n 'replace_placeholders' => true,\n ],\n\n 'daily' => [\n 'driver' => 'daily',\n 'path' => storage_path('logs/laravel.log'),\n 'level' => env('LOG_LEVEL', 'debug'),\n 'days' => env('LOG_DAILY_DAYS', 14),\n 'replace_placeholders' => true,\n ],\n\n 'slack' => [\n 'driver' => 'slack',\n 'url' => env('LOG_SLACK_WEBHOOK_URL'),\n 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),\n 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),\n 'level' => env('LOG_LEVEL', 'critical'),\n 'replace_placeholders' => true,\n ],\n\n 'papertrail' => [\n 'driver' => 'monolog',\n 'level' => env('LOG_LEVEL', 'debug'),\n 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),\n 'handler_with' => [\n 'host' => env('PAPERTRAIL_URL'),\n 'port' => env('PAPERTRAIL_PORT'),\n 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),\n ],\n 'processors' => [PsrLogMessageProcessor::class],\n ],\n\n 'stderr' => [\n 'driver' => 'monolog',\n 'level' => env('LOG_LEVEL', 'debug'),\n 'handler' => StreamHandler::class,\n 'handler_with' => [\n 'stream' => 'php://stderr',\n ],\n 'formatter' => env('LOG_STDERR_FORMATTER'),\n 'processors' => [PsrLogMessageProcessor::class],\n ],\n\n 'syslog' => [\n 'driver' => 'syslog',\n 'level' => env('LOG_LEVEL', 'debug'),\n 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),\n 'replace_placeholders' => true,\n ],\n\n 'errorlog' => [\n 'driver' => 'errorlog',\n 'level' => env('LOG_LEVEL', 'debug'),\n 'replace_placeholders' => true,\n ],\n\n 'null' => [\n 'driver' => 'monolog',\n 'handler' => NullHandler::class,\n ],\n\n 'emergency' => [\n 'path' => storage_path('logs/laravel.log'),\n ],\n\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\logging.php"} {"instruction": "Provide the default configuration for mail.php in laravel.", "output": " env('MAIL_MAILER', 'log'),\n\n /*\n |--------------------------------------------------------------------------\n | Mailer Configurations\n |--------------------------------------------------------------------------\n |\n | Here you may configure all of the mailers used by your application plus\n | their respective settings. Several examples have been configured for\n | you and you are free to add your own as your application requires.\n |\n | Laravel supports a variety of mail \"transport\" drivers that can be used\n | when delivering an email. You may specify which one you're using for\n | your mailers below. You may also add additional mailers if needed.\n |\n | Supported: \"smtp\", \"sendmail\", \"mailgun\", \"ses\", \"ses-v2\",\n | \"postmark\", \"resend\", \"log\", \"array\",\n | \"failover\", \"roundrobin\"\n |\n */\n\n 'mailers' => [\n\n 'smtp' => [\n 'transport' => 'smtp',\n 'scheme' => env('MAIL_SCHEME'),\n 'url' => env('MAIL_URL'),\n 'host' => env('MAIL_HOST', '127.0.0.1'),\n 'port' => env('MAIL_PORT', 2525),\n 'username' => env('MAIL_USERNAME'),\n 'password' => env('MAIL_PASSWORD'),\n 'timeout' => null,\n 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),\n ],\n\n 'ses' => [\n 'transport' => 'ses',\n ],\n\n 'postmark' => [\n 'transport' => 'postmark',\n // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),\n // 'client' => [\n // 'timeout' => 5,\n // ],\n ],\n\n 'resend' => [\n 'transport' => 'resend',\n ],\n\n 'sendmail' => [\n 'transport' => 'sendmail',\n 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),\n ],\n\n 'log' => [\n 'transport' => 'log',\n 'channel' => env('MAIL_LOG_CHANNEL'),\n ],\n\n 'array' => [\n 'transport' => 'array',\n ],\n\n 'failover' => [\n 'transport' => 'failover',\n 'mailers' => [\n 'smtp',\n 'log',\n ],\n 'retry_after' => 60,\n ],\n\n 'roundrobin' => [\n 'transport' => 'roundrobin',\n 'mailers' => [\n 'ses',\n 'postmark',\n ],\n 'retry_after' => 60,\n ],\n\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Global \"From\" Address\n |--------------------------------------------------------------------------\n |\n | You may wish for all emails sent by your application to be sent from\n | the same address. Here you may specify a name and address that is\n | used globally for all emails that are sent by your application.\n |\n */\n\n 'from' => [\n 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),\n 'name' => env('MAIL_FROM_NAME', 'Example'),\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\mail.php"} {"instruction": "Provide the default configuration for queue.php in laravel.", "output": " env('QUEUE_CONNECTION', 'database'),\n\n /*\n |--------------------------------------------------------------------------\n | Queue Connections\n |--------------------------------------------------------------------------\n |\n | Here you may configure the connection options for every queue backend\n | used by your application. An example configuration is provided for\n | each backend supported by Laravel. You're also free to add more.\n |\n | Drivers: \"sync\", \"database\", \"beanstalkd\", \"sqs\", \"redis\",\n | \"deferred\", \"background\", \"failover\", \"null\"\n |\n */\n\n 'connections' => [\n\n 'sync' => [\n 'driver' => 'sync',\n ],\n\n 'database' => [\n 'driver' => 'database',\n 'connection' => env('DB_QUEUE_CONNECTION'),\n 'table' => env('DB_QUEUE_TABLE', 'jobs'),\n 'queue' => env('DB_QUEUE', 'default'),\n 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),\n 'after_commit' => false,\n ],\n\n 'beanstalkd' => [\n 'driver' => 'beanstalkd',\n 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),\n 'queue' => env('BEANSTALKD_QUEUE', 'default'),\n 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),\n 'block_for' => 0,\n 'after_commit' => false,\n ],\n\n 'sqs' => [\n 'driver' => 'sqs',\n 'key' => env('AWS_ACCESS_KEY_ID'),\n 'secret' => env('AWS_SECRET_ACCESS_KEY'),\n 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),\n 'queue' => env('SQS_QUEUE', 'default'),\n 'suffix' => env('SQS_SUFFIX'),\n 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),\n 'after_commit' => false,\n ],\n\n 'redis' => [\n 'driver' => 'redis',\n 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),\n 'queue' => env('REDIS_QUEUE', 'default'),\n 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),\n 'block_for' => null,\n 'after_commit' => false,\n ],\n\n 'deferred' => [\n 'driver' => 'deferred',\n ],\n\n 'background' => [\n 'driver' => 'background',\n ],\n\n 'failover' => [\n 'driver' => 'failover',\n 'connections' => [\n 'database',\n 'deferred',\n ],\n ],\n\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Job Batching\n |--------------------------------------------------------------------------\n |\n | The following options configure the database and table that store job\n | batching information. These options can be updated to any database\n | connection and table which has been defined by your application.\n |\n */\n\n 'batching' => [\n 'database' => env('DB_CONNECTION', 'sqlite'),\n 'table' => 'job_batches',\n ],\n\n /*\n |--------------------------------------------------------------------------\n | Failed Queue Jobs\n |--------------------------------------------------------------------------\n |\n | These options configure the behavior of failed queue job logging so you\n | can control how and where failed jobs are stored. Laravel ships with\n | support for storing failed jobs in a simple file or in a database.\n |\n | Supported drivers: \"database-uuids\", \"dynamodb\", \"file\", \"null\"\n |\n */\n\n 'failed' => [\n 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),\n 'database' => env('DB_CONNECTION', 'sqlite'),\n 'table' => 'failed_jobs',\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\queue.php"} {"instruction": "Provide the default configuration for services.php in laravel.", "output": " [\n 'key' => env('POSTMARK_API_KEY'),\n ],\n\n 'resend' => [\n 'key' => env('RESEND_API_KEY'),\n ],\n\n 'ses' => [\n 'key' => env('AWS_ACCESS_KEY_ID'),\n 'secret' => env('AWS_SECRET_ACCESS_KEY'),\n 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),\n ],\n\n 'slack' => [\n 'notifications' => [\n 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),\n 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),\n ],\n ],\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\services.php"} {"instruction": "Provide the default configuration for session.php in laravel.", "output": " env('SESSION_DRIVER', 'database'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Lifetime\n |--------------------------------------------------------------------------\n |\n | Here you may specify the number of minutes that you wish the session\n | to be allowed to remain idle before it expires. If you want them\n | to expire immediately when the browser is closed then you may\n | indicate that via the expire_on_close configuration option.\n |\n */\n\n 'lifetime' => (int) env('SESSION_LIFETIME', 120),\n\n 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),\n\n /*\n |--------------------------------------------------------------------------\n | Session Encryption\n |--------------------------------------------------------------------------\n |\n | This option allows you to easily specify that all of your session data\n | should be encrypted before it's stored. All encryption is performed\n | automatically by Laravel and you may use the session like normal.\n |\n */\n\n 'encrypt' => env('SESSION_ENCRYPT', false),\n\n /*\n |--------------------------------------------------------------------------\n | Session File Location\n |--------------------------------------------------------------------------\n |\n | When utilizing the \"file\" session driver, the session files are placed\n | on disk. The default storage location is defined here; however, you\n | are free to provide another location where they should be stored.\n |\n */\n\n 'files' => storage_path('framework/sessions'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Database Connection\n |--------------------------------------------------------------------------\n |\n | When using the \"database\" or \"redis\" session drivers, you may specify a\n | connection that should be used to manage these sessions. This should\n | correspond to a connection in your database configuration options.\n |\n */\n\n 'connection' => env('SESSION_CONNECTION'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Database Table\n |--------------------------------------------------------------------------\n |\n | When using the \"database\" session driver, you may specify the table to\n | be used to store sessions. Of course, a sensible default is defined\n | for you; however, you're welcome to change this to another table.\n |\n */\n\n 'table' => env('SESSION_TABLE', 'sessions'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Cache Store\n |--------------------------------------------------------------------------\n |\n | When using one of the framework's cache driven session backends, you may\n | define the cache store which should be used to store the session data\n | between requests. This must match one of your defined cache stores.\n |\n | Affects: \"dynamodb\", \"memcached\", \"redis\"\n |\n */\n\n 'store' => env('SESSION_STORE'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Sweeping Lottery\n |--------------------------------------------------------------------------\n |\n | Some session drivers must manually sweep their storage location to get\n | rid of old sessions from storage. Here are the chances that it will\n | happen on a given request. By default, the odds are 2 out of 100.\n |\n */\n\n 'lottery' => [2, 100],\n\n /*\n |--------------------------------------------------------------------------\n | Session Cookie Name\n |--------------------------------------------------------------------------\n |\n | Here you may change the name of the session cookie that is created by\n | the framework. Typically, you should not need to change this value\n | since doing so does not grant a meaningful security improvement.\n |\n */\n\n 'cookie' => env(\n 'SESSION_COOKIE',\n Str::slug((string) env('APP_NAME', 'laravel')).'-session'\n ),\n\n /*\n |--------------------------------------------------------------------------\n | Session Cookie Path\n |--------------------------------------------------------------------------\n |\n | The session cookie path determines the path for which the cookie will\n | be regarded as available. Typically, this will be the root path of\n | your application, but you're free to change this when necessary.\n |\n */\n\n 'path' => env('SESSION_PATH', '/'),\n\n /*\n |--------------------------------------------------------------------------\n | Session Cookie Domain\n |--------------------------------------------------------------------------\n |\n | This value determines the domain and subdomains the session cookie is\n | available to. By default, the cookie will be available to the root\n | domain without subdomains. Typically, this shouldn't be changed.\n |\n */\n\n 'domain' => env('SESSION_DOMAIN'),\n\n /*\n |--------------------------------------------------------------------------\n | HTTPS Only Cookies\n |--------------------------------------------------------------------------\n |\n | By setting this option to true, session cookies will only be sent back\n | to the server if the browser has a HTTPS connection. This will keep\n | the cookie from being sent to you when it can't be done securely.\n |\n */\n\n 'secure' => env('SESSION_SECURE_COOKIE'),\n\n /*\n |--------------------------------------------------------------------------\n | HTTP Access Only\n |--------------------------------------------------------------------------\n |\n | Setting this value to true will prevent JavaScript from accessing the\n | value of the cookie and the cookie will only be accessible through\n | the HTTP protocol. It's unlikely you should disable this option.\n |\n */\n\n 'http_only' => env('SESSION_HTTP_ONLY', true),\n\n /*\n |--------------------------------------------------------------------------\n | Same-Site Cookies\n |--------------------------------------------------------------------------\n |\n | This option determines how your cookies behave when cross-site requests\n | take place, and can be used to mitigate CSRF attacks. By default, we\n | will set this value to \"lax\" to permit secure cross-site requests.\n |\n | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value\n |\n | Supported: \"lax\", \"strict\", \"none\", null\n |\n */\n\n 'same_site' => env('SESSION_SAME_SITE', 'lax'),\n\n /*\n |--------------------------------------------------------------------------\n | Partitioned Cookies\n |--------------------------------------------------------------------------\n |\n | Setting this value to true will tie the cookie to the top-level site for\n | a cross-site context. Partitioned cookies are accepted by the browser\n | when flagged \"secure\" and the Same-Site attribute is set to \"none\".\n |\n */\n\n 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),\n\n];\n", "source": "github_code", "repo": "https://github.com/laravel/laravel", "path": "config\\session.php"} {"instruction": "Explain the purpose and usage of the seotools library based on its documentation.", "output": "\n \n \n \n