Commit Graph

565 Commits

Author SHA1 Message Date
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
Taylor Otwell de6d4f58cc fixing conflicts 2023-11-06 17:31:18 -06:00
Taylor Otwell 024c86a24b
Revert "Let database handle default collation (#6241)" (#6266)
This reverts commit 74c5a01b09.
2023-11-02 08:42:28 -05:00
hedge-freek ad1c5fe4c2
Redis maintenance store config example contains an excess space (#6264)
Binary operators should be surrounded by space a single space.
2023-10-31 09:38:55 -05:00
Tim MacDonald 21ad6d6915
Verify algo (#6258) 2023-10-25 14:32:54 -05:00
Martin Bastien 25070a3ffb
Fix typo in the comment for token prefix (sanctum config) (#6248) 2023-09-26 20:37:09 -05:00
Stephen Rees-Carter 540cec038f
Increase bcrypt rounds to 12 (#6245) 2023-09-22 10:06:29 -05:00
Julius Kiekbusch 74c5a01b09
Let database handle default collation (#6241) 2023-09-19 09:15:38 -05:00
Julius Kiekbusch 96d3ecf5c2
Revert "Fix incorrect collation for MySQL 8 (#6239)" (#6240)
This reverts commit c088b3b765.
2023-09-15 17:29:57 -05:00
Raj Siva-Rajah c088b3b765
Fix incorrect collation for MySQL 8 (#6239) 2023-09-15 08:18:41 -05:00
Taylor Otwell 8dc6ced55b Merge branch '10.x' 2023-09-13 16:03:34 -05:00
Ahmed Fathy bfead27a28
[10.x] Update sanctum config file (#6234)
* update sanctum config file

* Update sanctum.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-09-07 10:48:35 -05:00
Taylor Otwell 17f94e3081 fix conflicts 2023-08-31 12:06:32 -05:00
Ninja 32ecad53a9
Postmark mailer configuraiton update. (#6228)
* Update mail.php

ref https://github.com/craigpaul/laravel-postmark/issues/141

* Update mail.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-08-21 14:34:28 -05:00
Jacob Müller e96d21dd2d
[11.x]: Use `ses-v2` as default `ses` mail transport (#6205) 2023-06-26 16:40:07 -05:00
Taylor Otwell a6bfbc7f90 add lock path 2023-05-23 16:45:40 -05:00
Jesse Leite 953eae2938
Bring back cluster config option, as required by pusher-js v8.0. (#6174) 2023-05-12 13:39:56 -05:00
Saya 150e379ce2
Update mail.php (#6170) 2023-05-05 12:42:51 -05:00
Taylor Otwell ebf9d30bf3
[10.x] Minor skeleton slimming (#6159)
* remove rate limiter from route provider by default

* remove policy place holder

* remove broadcast skeleton in favor of new provider in core

* use default provider collection

* Remove unnecessary properties from exception handler.

* add back broadcast provider

* update comment

* add rate limiting

* Apply fixes from StyleCI

* fix formatting

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-04-15 16:53:39 -05:00
André Olsen 0bcd012dc0
Add job batching options to Queue configuration file (#6149)
* add batching config options to queue config file

This adds the batching configuration options to the queue configuration skeleton, so everyone has a faster way of knowing that it's possible to customize the database connection and table options.

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-04-05 10:03:08 -05:00
Alan Poulain 9ae75b58a1
[10.x] Add replace_placeholders to log channels (#6139)
* add replace_placeholders to log channels

* Update logging.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
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
Izzudin Anuar a337b99dfb
Fix typo (#6128) 2023-02-25 23:37:54 +05:30
Tim MacDonald e121424f90
Reverts #6089 (#6122) 2023-02-20 05:05:45 -06:00
Taylor Otwell 1bb530c609
Revert "add ses-v2 mailer in config (#6112)" (#6115)
This reverts commit a1ef009415.
2023-02-17 08:38:44 -06:00
Ankur Kumar a1ef009415
add ses-v2 mailer in config (#6112) 2023-02-17 08:38:29 -06:00
Jonathan Goode c909b037ae
Missing comma (#6111) 2023-02-17 08:47:16 +01:00
Taylor Otwell 9c4cef107f note ses-v2 2023-02-14 13:04:45 -06:00
Taylor Otwell f48a46bf20 Merge branch '9.x' into 10.x 2023-02-14 09:17:09 -06:00
Arne_ 5b60b604c4
[9.x] Adds clarification to throttle auth setting (#6096)
* adds clarification to throttle auth setting

* Update auth.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-02-12 14:06:25 -06:00
Tim MacDonald 5eb99fcae6
sets ASSET_URL to use / as the default value (#6089) 2023-02-06 09:07:12 -06:00
Taylor Otwell e0a5b0efba document new options 2023-01-31 09:00:17 -06:00
Taylor Otwell a28ad2966d rename password reset tokens table in skeleton 2023-01-30 16:53:14 -06:00
Bùi Thế Hạnh 5daa02c70b
Shorten pusher host config (#6009)
* Shorten pusher host config

* Update broadcasting.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-10-11 08:43:53 -05:00
rennokki d694bc06cc
[9.x] Added support for easy development configuration in bootstrap.js (#5900)
* Added support for easy development configuration in bootstrap.js

* Added extra variables for existing configuration in broadcasting

* Update bootstrap.js

* Setting default for empty variable

* Update .env.example

* Update .env.example

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-06-24 13:35:29 -05:00
Oanh Nguyen 93cc51ed00
[9.x] Improve Pusher configuration for easy development (#5897)
* Improve Pusher configuration for easy development

* Fix style-ci
2022-06-07 10:03:59 -05:00
Bram in 't Zandt 14b6505bba
Update mail.php (#5877)
Add `local_domain` as an option to the smtp configuration. This can be used to change the domain that is used to send the `EHLO` command during the SMTP handshake.

`null` is a sensible default since Symfony/Mailer will use it's own default (`127.0.0.1`) to send the mail.

Co-authored-by: Bram in 't Zandt <bram@bigspark.com>
2022-05-04 09:05:31 -05:00
Dries Vints 62cb9052cd
Update logging.php (#5874) 2022-05-03 09:31:17 -05:00
Bruno Tomé 9d39835571
[9.x] Add missing maintenance to config (#5868)
* [9.x] Add missing maintenance to config

#40102

* fix spacing

* fix cache store for maintenance config

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-04-20 15:29:25 -05:00
Taylor Otwell d70eb3e1d1 wip 2022-04-05 20:53:46 -05:00
Taylor Otwell f7b982ebdf add encryption configuration 2022-03-29 14:50:24 -05:00
neoteknic 8594815f5e
Add username in config to use with phpredis + ACL (#5851)
Linked to https://github.com/laravel/framework/pull/41683/commits
2022-03-25 10:38:42 -05:00
Jack Ellis 9ffc18aa42
The comment for cache key prefix needed an update (#5849)
* The comment for cache key prefix needed an update

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-03-21 15:35:38 -07:00
Noboru Shiroiwa d8f0e93c56
[9.x] Add an example to the class aliases (#5846)
* Add an example to the class aliases

* Update app.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-03-21 09:00:48 -07:00
Dries Vints 95fec9a3e8
Update mail.php (#5836) 2022-03-08 08:38:39 -06:00
Ankur Kumar 93395a3468
[9.x] add throw to filesystems config (#5835) 2022-03-06 10:30:51 -06:00
Jesper Noordsij 4ecd97bcf7
Add option to configure Mailgun transporter scheme (#5831) 2022-03-03 08:13:57 -06:00
Roy Shay 969ff64e02
Small typo fix in filesystems.php (#5827)
* Update filesystems.php

* Update filesystems.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-02-22 15:05:53 -06:00
suyar 871ff9e65f
[9.x] Update sanctum config file (#5820)
* Update sanctum config file

* Update composer.json

Co-authored-by: suyaqi <suyaqi@wy.net>
Co-authored-by: Dries Vints <dries@vints.io>
2022-02-17 09:16:40 -06:00
m4tlch 19f4e346d4
Add underscore to prefix in database cache key (#5817)
For Redis caching prefix with underscore : 
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),

but when cache stored in database, then the key is created "merged" with prefix, by this line:  'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), for example, if "key" is a key for cache, then the result is: "laravel_cachekey", not a preferable "laravel_cache_key"
2022-02-15 09:09:29 -06:00