38 Commits
Author SHA1 Message Date
Hamed EL-Asma cd2bde56a0 [12.x] Add APP_NAME fallback in Slack log channel username (#6762)
The Slack log channel username falls back to the generic "Laravel Log"
when unset. This updates the fallback to use `APP_NAME` instead,
making it easier to identify which application is sending logs when
multiple Laravel apps post to the same Slack channel.

Follows the same pattern as #6755 which added an `APP_NAME` fallback
in the mail config.
2026-03-11 09:14:03 -05:00
Ahmed Alaa 4ab121576e [12.x] Fix type casting for environment variables in config files (#6637)
* Update app.php

* Update cache.php

* Update database.php

* Update logging.php

* Update mail.php
2025-07-03 08:32:07 -05:00
Ahmed AlaaandTaylor Otwell 3549033ac7 [12.x] Refactor: Structural improvement for clarity (#6574)
* Structural improvement for clarity

* Update logging.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
2025-03-10 12:07:54 -05:00
maru0914 ad38e564ac Format the first letter of drivers to lowercase (#6413) 2024-06-04 08:28:32 -05:00
Taylor Otwell f437205a5e slim configuration 2024-02-23 14:35:25 -06:00
Taylor Otwell 96508d43ec wip 2024-02-23 11:53:06 -06:00
Taylor Otwell 428a190050 [11.x] Slim skeleton (#6188)
See: https://github.com/laravel/framework/pull/47309

# Laravel 11 Skeleton Overview

### General Notes

More environment variables have been added to the `.env.example` file. 

The default `QUEUE_CONNECTION` variable value has been updated to `database` instead of `sync`.

The `BROADCAST_DRIVER` and `CACHE_DRIVER` environment variables have been renamed to `BROADCAST_CONNECTION` and `CACHE_STORE`, respectively.

The HTTP Kernel has been removed. Configuration that was previously done in this file can be done in the `bootstrap/app.php` file, including registering / replacing middleware.

The console kernel has been removed. Schedules can be defined in the console “routes” file. Commands generated by `make:command` are automatically loaded and do not require registration. Additional command loading paths can be registered in the `bootstrap/app.php` file.

The exception handler has been removed. Exception handling behavior can be configured in the `bootstrap/app.php` file via `reportable`, `renderable`, `throttle`, and more. Callbacks received by these functions will have their type hints inspected to see if they handle a given exception.

The base HTTP controller no longer extends any other classes (requiring new middleware definition feature). No traits are included by default on the base controller. Authorization can be done using facades, or traits can be added manually.

All middleware has been removed. Configuration of these middleware’s behavior can be done via static methods on the middleware themselves (see framework notes).

The `User` model now utilizes a `casts` method instead of a property. The `HasApiTokens` trait has been removed by default since Sanctum is not installed by default.

All service providers except the `AppServiceProvider` have been removed. Policies are auto-discovered and gates can be registered in `AppServiceProvider`. Likewise, events can be registered in `AppServiceProvider`. Routing behavior is now determined / customized in the `bootstrap/app.php` file.

New `bootstrap/app.php` file can be used to customize core framework behavior like routing, container bindings, middleware, and exception handling.

Sanctum is no longer installed by default (see `install:api`).

Configuration files are not present by default. Can be published by `config:publish` command. Default values are present in the framework and application level configuration now cascades with framework definitions, so only customized values need be present in application level configuration files.

Migration files have been re-dated to be evergreen. The `password_reset_tokens` table migration has been combined into the `users` table migration file. Likewise, the `jobs` table migration has been combined into a single migration with the `failed_jobs` table.

Echo bootstrapping has been removed by default. It is re-inserted by new `install:broadcasting` command.

API and channel routes files are not present by default, can be recreated by `install:api` and `install:broadcasting` respectively.
2023-11-28 14:28:15 -06:00
Alan PoulainandTaylor Otwell 9ae75b58a1 [10.x] Add replace_placeholders to log channels (#6139)
* add replace_placeholders to log channels

* Update logging.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
2023-03-08 10:57:09 -06:00
Nico 22df611a2f Specify facility in the syslog driver config (#6130) 2023-02-28 00:07:48 +05:30
Dries Vints 62cb9052cd Update logging.php (#5874) 2022-05-03 09:31:17 -05:00
Beau Simensen aed682e0de [9.x] Make it easier to support Papertrail on Vapor out of the box (#5780)
* Make it easier to support Papertrail on Vapor

* Fixed style
2022-01-27 12:00:18 -06:00
Nuno MaduroandTaylor Otwell 1980ca13ea [8.x] Logs deprecations instead of treating them as exceptions (#5711)
* Logs deprecations instead of treating them as exceptions

* formatting

Co-authored-by: Taylor Otwell <[email protected]>
2021-10-19 08:42:24 -05:00
Jesper Noordsij 177e05beec Add log level config value to stderr channel (#5558) 2021-03-10 08:52:57 -06:00
Norgul f12fd98414 Update logging.php (#5442)
Added `LOG_LEVEL` env variable
2020-10-05 15:11:23 -05:00
Michael Stokoe 17f0ff2205 Updated config/logging.php (#5179)
This adds a default emergency logger path to the logging config file.
This change goes hand-in-hand with my changes found here:
https://github.com/Stokoe0990/framework/commit/7a03776bc860bde4cdc82e69ab133a755b66dd2d
2019-12-18 09:38:03 -06:00
Taylor Otwell f48e2d500c change some default settings 2019-12-13 22:42:46 -06:00
Roger Vilà c70c986e58 [6.x] Add 'null' logging channel (#5106)
* Add 'none' logging channel

* Remove extra spaces

* Rename 'none' channel to 'null'

* Update logging.php
2019-09-13 14:47:34 -05:00
Taylor Otwell ab1e9f8b6a default to false 2019-01-28 08:38:36 -06:00
Taylor Otwell 6da06fba93 default to true 2019-01-28 08:38:14 -06:00
Taylor Otwell d80b4e7cb0 adjust name of configuration value 2019-01-28 08:37:39 -06:00
Propaganistas 217cbde378 Hint for lenient log stacks 2019-01-25 21:30:35 +01:00
Eric Famiglietti d0726a34d1 Remove extra whitespace. 2018-12-18 22:22:09 -05:00
Taylor Otwell e1b8847a92 add env variable 2018-12-11 16:05:24 -06:00
Taylor Otwell cd8dd76b67 increase days 2018-09-27 09:01:45 -05:00
Marcin Nabiałek c60ff60679 Change default days to 30 for daily channel 2018-09-26 15:56:56 +02:00
Bert Heyman cc28fb28ab Set logs to daily by default 2018-09-24 14:22:24 +02:00
Taylor Otwell 22d37a53ff add level 2018-09-06 08:23:57 -05:00
Taylor Otwell 371bc94673 formatting 2018-09-06 08:23:36 -05:00
Renoir dos Reis ea3afd1013 Adding papertrail log channel option 2018-09-05 11:15:27 -03:00
Taylor Otwell 29a1739099 add wording 2018-03-14 14:19:07 -05:00
Taylor Otwell 66f5757d58 add stderr example 2018-03-14 14:17:27 -05:00
Taylor Otwell ebb0a2a84f change the default logging channel 2018-01-26 14:41:53 -06:00
Taylor Otwell 2eeca4e220 change name 2018-01-26 10:45:22 -06:00
Taylor Otwell 6284528b76 update driver list 2018-01-18 08:55:30 -06:00
Taylor Otwell f6e0fd7ac3 slack driver config 2018-01-18 08:53:51 -06:00
Taylor Otwell ff0bec857e update to stack 2018-01-18 08:26:24 -06:00
Taylor Otwell bd5783b5e9 add aggregate example 2018-01-16 11:52:42 -06:00
Taylor Otwell acabdff2e3 update log configuration file 2018-01-04 15:28:26 -06:00