Skip to content

Commit

Permalink
Updates components
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Apr 24, 2024
1 parent d6a45cc commit 3887503
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 41 deletions.
3 changes: 1 addition & 2 deletions src/Components/Http/Installer.php
Expand Up @@ -35,7 +35,6 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('guzzlehttp/guzzle "^7.5"');
$this->require('illuminate/http "^10.0"');
$this->require('illuminate/http "^11.5"');
}
}
2 changes: 1 addition & 1 deletion src/Components/Log/Installer.php
Expand Up @@ -41,7 +41,7 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('illuminate/log "^10.0"');
$this->require('illuminate/log "^11.5"');

$this->task(
'Creating default logging configuration',
Expand Down
42 changes: 28 additions & 14 deletions src/Components/Log/stubs/logging.php
Expand Up @@ -3,6 +3,7 @@
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
use Monolog\Processor\PsrLogMessageProcessor;

return [

Expand All @@ -11,9 +12,9 @@
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
| This option defines the default log channel that is utilized to write
| messages to your logs. The value provided here should match one of
| the channels present in the list of "channels" configured below.
|
*/

Expand All @@ -30,59 +31,67 @@
|
*/

'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'deprecations' => [
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
],

/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
| Here you may configure the log channels for your application. Laravel
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog",
| "custom", "stack"
| "errorlog", "monolog", "custom", "stack"
|
*/

'channels' => [

'stack' => [
'driver' => 'stack',
'channels' => ['stderr'],
'channels' => explode(',', env('LOG_STACK', 'single')),
'ignore_exceptions' => false,
],

'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],

'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
'days' => env('LOG_DAILY_DAYS', 14),
'replace_placeholders' => true,
],

'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
'level' => env('LOG_LEVEL', 'critical'),
'replace_placeholders' => true,
],

'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => SyslogUdpHandler::class,
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
],
'processors' => [PsrLogMessageProcessor::class],
],

'stderr' => [
Expand All @@ -93,16 +102,20 @@
'with' => [
'stream' => 'php://stderr',
],
'processors' => [PsrLogMessageProcessor::class],
],

'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
'replace_placeholders' => true,
],

'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],

'null' => [
Expand All @@ -113,6 +126,7 @@
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],

],

];
2 changes: 1 addition & 1 deletion src/Components/Logo/Installer.php
Expand Up @@ -41,7 +41,7 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('laminas/laminas-text "^2.10"');
$this->require('laminas/laminas-text "^2.11"');

$this->task(
'Creating default logo configuration',
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Menu/Installer.php
Expand Up @@ -35,6 +35,6 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('nunomaduro/laravel-console-menu "^3.4"');
$this->require('nunomaduro/laravel-console-menu "^3.5"');
}
}
4 changes: 2 additions & 2 deletions src/Components/Queue/Installer.php
Expand Up @@ -43,8 +43,8 @@ public function install(): void
{
$this->call('app:install', ['component' => 'database']);

$this->require('illuminate/bus "^10.0"');
$this->require('illuminate/queue "^10.0"');
$this->require('illuminate/bus "^11.5"');
$this->require('illuminate/queue "^11.5"');

$this->task(
'Creating default queue configuration',
Expand Down
53 changes: 36 additions & 17 deletions src/Components/Queue/stubs/queue.php
Expand Up @@ -7,9 +7,9 @@
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
| Laravel's queue supports a variety of backends via a single, unified
| API, giving you convenient access to each backend using identical
| syntax for each. The default queue connection is defined below.
|
*/

Expand All @@ -20,9 +20,9 @@
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
| Here you may configure the connection options for every queue backend
| used by your application. An example configuration is provided for
| each backend supported by Laravel. You're also free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
Expand All @@ -36,17 +36,18 @@

'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'connection' => env('DB_QUEUE_CONNECTION'),
'table' => env('DB_QUEUE_TABLE', 'jobs'),
'queue' => env('DB_QUEUE', 'default'),
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
'after_commit' => false,
],

'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
'queue' => env('BEANSTALKD_QUEUE', 'default'),
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
'block_for' => 0,
'after_commit' => false,
],
Expand All @@ -64,29 +65,47 @@

'redis' => [
'driver' => 'redis',
'connection' => 'default',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],

],

/*
|--------------------------------------------------------------------------
| Job Batching
|--------------------------------------------------------------------------
|
| The following options configure the database and table that store job
| batching information. These options can be updated to any database
| connection and table which has been defined by your application.
|
*/

'batching' => [
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'job_batches',
],

/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
| can control how and where failed jobs are stored. Laravel ships with
| support for storing failed jobs in a simple file or in a database.
|
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
*/

'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'mysql'),
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs',
],

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Redis/Installer.php
Expand Up @@ -27,6 +27,6 @@ final class Installer extends AbstractInstaller
/** {@inheritdoc} */
public function install(): void
{
$this->require('illuminate/redis "^10.0"');
$this->require('illuminate/redis "^11.5"');
}
}
2 changes: 1 addition & 1 deletion src/Components/Updater/Installer.php
Expand Up @@ -35,6 +35,6 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('laravel-zero/phar-updater "^1.3"');
$this->require('laravel-zero/phar-updater "^1.4"');
}
}
2 changes: 1 addition & 1 deletion src/Components/View/Installer.php
Expand Up @@ -41,7 +41,7 @@ final class Installer extends AbstractInstaller
*/
public function install(): void
{
$this->require('illuminate/view "^10.0"');
$this->require('illuminate/view "^11.5"');

$this->task(
'Creating resources/views folder',
Expand Down

0 comments on commit 3887503

Please sign in to comment.