From 083b2a917ff7e82ae7f8f80ccf0296d2b4555f4e Mon Sep 17 00:00:00 2001 From: Hichem Fantar Date: Sat, 7 Jan 2023 17:42:55 +0100 Subject: [PATCH] fix table overflow --- authorization.md | 4 ++++ facades.md | 4 ++++ logging.md | 12 ++++++++++++ releases.md | 5 +++++ scheduling.md | 8 ++++++++ valet.md | 4 ++++ 6 files changed, 37 insertions(+) diff --git a/authorization.md b/authorization.md index 58367dcbb7b..121cbe51f13 100644 --- a/authorization.md +++ b/authorization.md @@ -654,6 +654,8 @@ The `authorizeResource` method accepts the model's class name as its first argum The following controller methods will be mapped to their corresponding policy method. When requests are routed to the given controller method, the corresponding policy method will automatically be invoked before the controller method is executed: +
+ | Controller Method | Policy Method | | --- | --- | | index | viewAny | @@ -664,6 +666,8 @@ The following controller methods will be mapped to their corresponding policy me | update | update | | destroy | delete | +
+ > **Note** > You may use the `make:policy` command with the `--model` option to quickly generate a policy class for a given model: `php artisan make:policy PostPolicy --model=Post`. diff --git a/facades.md b/facades.md index 4cb4db031c7..37d0360ffb0 100644 --- a/facades.md +++ b/facades.md @@ -243,6 +243,8 @@ When the real-time facade is used, the publisher implementation will be resolved Below you will find every facade and its underlying class. This is a useful tool for quickly digging into the API documentation for a given facade root. The [service container binding](/docs/{{version}}/container) key is also included where applicable. +
+ Facade | Class | Service Container Binding ------------- | ------------- | ------------- App | [Illuminate\Foundation\Application](https://laravel.com/api/{{version}}/Illuminate/Foundation/Application.html) | `app` @@ -293,3 +295,5 @@ Validator (Instance) | [Illuminate\Validation\Validator](https://laravel.com/a View | [Illuminate\View\Factory](https://laravel.com/api/{{version}}/Illuminate/View/Factory.html) | `view` View (Instance) | [Illuminate\View\View](https://laravel.com/api/{{version}}/Illuminate/View/View.html) |   Vite | [Illuminate\Foundation\Vite](https://laravel.com/api/{{version}}/Illuminate/Foundation/Vite.html) |   + +
diff --git a/logging.md b/logging.md index 228f399fdba..816962d8289 100644 --- a/logging.md +++ b/logging.md @@ -46,6 +46,8 @@ By default, Monolog is instantiated with a "channel name" that matches the curre Each log channel is powered by a "driver". The driver determines how and where the log message is actually recorded. The following log channel drivers are available in every Laravel application. An entry for most of these drivers is already present in your application's `config/logging.php` configuration file, so be sure to review this file to become familiar with its contents: +
+ Name | Description ------------- | ------------- `custom` | A driver that calls a specified factory to create a channel @@ -59,6 +61,8 @@ Name | Description `stack` | A wrapper to facilitate creating "multi-channel" channels `syslog` | A `SyslogHandler` based Monolog driver +
+ > **Note** > Check out the documentation on [advanced channel customization](#monolog-channel-customization) to learn more about the `monolog` and `custom` drivers. @@ -70,18 +74,26 @@ Name | Description The `single` and `daily` channels have three optional configuration options: `bubble`, `permission`, and `locking`. +
+ Name | Description | Default ------------- | ------------- | ------------- `bubble` | Indicates if messages should bubble up to other channels after being handled | `true` `locking` | Attempt to lock the log file before writing to it | `false` `permission` | The log file's permissions | `0644` +
+ Additionally, the retention policy for the `daily` channel can be configured via the `days` option: +
+ Name | Description | Default ------------- |-------------------------------------------------------------------| ------------- `days` | The number of days that daily log files should be retained | `7` +
+ #### Configuring The Papertrail Channel diff --git a/releases.md b/releases.md index 2e49441fde3..9d1d7b1adc2 100644 --- a/releases.md +++ b/releases.md @@ -21,6 +21,9 @@ When referencing the Laravel framework or its components from your application o For all Laravel releases, bug fixes are provided for 18 months and security fixes are provided for 2 years. For all additional libraries, including Lumen, only the latest major release receives bug fixes. In addition, please review the database versions [supported by Laravel](/docs/{{version}}/database#introduction). + +
+ | Version | PHP (*) | Release | Bug Fixes Until | Security Fixes Until | | --- | --- | --- | --- | --- | | 8 | 7.3 - 8.1 | September 8th, 2020 | July 26th, 2022 | January 24th, 2023 | @@ -28,6 +31,8 @@ For all Laravel releases, bug fixes are provided for 18 months and security fixe | 10 | 8.1 | February 7th, 2023 | August 6th, 2024 | February 4th, 2025 | | 11 | 8.2 | February 6th, 2024 | August 5th, 2025 | February 3rd, 2026 | +
+
diff --git a/scheduling.md b/scheduling.md index 6c0e313b9f0..c1fd1024a46 100644 --- a/scheduling.md +++ b/scheduling.md @@ -101,6 +101,8 @@ The `exec` method may be used to issue a command to the operating system: We've already seen a few examples of how you may configure a task to run at specified intervals. However, there are many more task schedule frequencies that you may assign to a task: +
+ Method | Description ------------- | ------------- `->cron('* * * * *');` | Run the task on a custom cron schedule @@ -135,6 +137,8 @@ Method | Description `->yearlyOn(6, 1, '17:00');` | Run the task every year on June 1st at 17:00 `->timezone('America/New_York');` | Set the timezone for the task +
+ These methods may be combined with additional constraints to create even more finely tuned schedules that only run on certain days of the week. For example, you may schedule a command to run weekly on Monday: // Run once per week on Monday at 1 PM... @@ -151,6 +155,8 @@ These methods may be combined with additional constraints to create even more fi A list of additional schedule constraints may be found below: +
+ Method | Description ------------- | ------------- `->weekdays();` | Limit the task to weekdays @@ -168,6 +174,8 @@ Method | Description `->when(Closure);` | Limit the task based on a truth test `->environments($env);` | Limit the task to specific environments +
+ #### Day Constraints diff --git a/valet.md b/valet.md index a38d5a5b18f..025d66363d2 100644 --- a/valet.md +++ b/valet.md @@ -458,6 +458,8 @@ If you would like to define a custom Valet driver for a single application, crea ## Other Valet Commands +
+ Command | Description ------------- | ------------- `valet list` | Display a list of all Valet commands. @@ -470,6 +472,8 @@ Command | Description `valet trust` | Add sudoers files for Brew and Valet to allow Valet commands to be run without prompting for your password. `valet uninstall` | Uninstall Valet: shows instructions for manual uninstall. Pass the `--force` option to aggressively delete all of Valet's resources. +
+ ## Valet Directories & Files