52 Commits

Author SHA1 Message Date
Dries Vints
6f5d9b8888
Fix retry_after to be an integer (#6377) 2024-03-15 09:02:06 -05:00
Sergey Pashkevich
eb8f9dc2d6
[11.x] Removed useless null parameter for env helper (#6373) 2024-03-15 11:19:40 +01: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
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
Brandon Surowiec
5cfd28df2d
Add missing 'after_commit' attribute (#5554)
There's a new `after_commit` config option that isn't in the default config: 
https://laravel.com/docs/8.x/queues#jobs-and-database-transactions

For new projects it may be better to have these defaulted to `true`, but I left it as `false` for now.
2021-03-09 08:51:56 -06:00
Karel Faille
2b8f3aa506
Use same default queue name for all drivers (#5549) 2021-03-02 13:35:52 -06:00
Taylor Otwell
d6eda444a7 update defaults 2020-08-19 09:32:54 -05:00
Roberto Aguilar
b0ce2adc42
Add new SQS queue suffix option (#5252)
As described in laravel/framework#31784, this option will allow to
define a queue name suffix.
2020-03-06 15:16:30 -06:00
Taylor Otwell
e6becd2ca3 add new failed driver option 2019-08-27 16:26:48 -05:00
Avtandil Kikabidze
b34328a166
Use correct env name for AWS region from env.example 2019-02-27 14:05:01 +04:00
Matt Allan
2588b254a0 Add beanstalk queue block_for config key
This functionality was added in laravel/framework 9aa1706.
2019-01-17 16:01:57 -05:00
Taylor Otwell
87667b25ae update env variable stubs 2018-12-18 09:09:55 -06:00
Ben Sampson
4525f36cac
use env value for redis queue name
It's common to have a redis queue name when having multiple queues/applications on the same instance. Default value is the same.
2018-10-30 12:36:35 +00:00
Taylor Otwell
c30adc88c1 adjust variable name 2018-03-13 13:38:47 -05:00
Taylor Otwell
10340d3a02 fix wording 2018-03-13 13:37:32 -05:00
Jason Judge
37b9e0f76d
The default queue "driver" is actually a "connection"
The description here has bothered me for a while, because it is kind of misleading.

The `QUEUE_DRIVER` environment variable perhaps also needs changing to `QUEUE_CONNECTION`, but I'm not sure if that is just too engrained in legacy systems now? I can change that on this PR if you agree, and also the matching `QUEUE_DRIVER=sync` in `.env.example`.
2018-03-13 18:29:01 +00:00
Taylor Otwell
d6d0013562 add block_for option 2018-01-26 09:05:27 -06:00
Taylor Otwell
aa4b02358a fix name 2017-12-19 08:08:25 -06:00
Pavinthan
bafe459963
Name sort 2017-12-19 12:44:14 +05:30
Pavinthan
41ea79f20e
Update SQS config 2017-12-19 12:42:36 +05:30
Laurence Ioannou
86e4e204aa Update queue.php 2017-04-28 21:19:14 +01:00
Taylor Otwell
6869a880b7 adjust wording 2017-04-21 11:39:59 -05:00
Andrew
d771ee6c8a add queue prefix value
this PR goes along with https://github.com/laravel/framework/pull/18860
2017-04-20 15:31:39 -05:00
Taylor Otwell
a9fad67e1f fix spacing 2017-01-21 10:15:05 -06:00
Drew Budwin
d1fd418826 Fixed a typo in a block comment queue.php
Normally, words that start with vowels (like "unified") are preceded by "an" instead of "a."  However, "unified" is an exception to the rule.

Source: https://www.a-or-an.com/a_an/unified
2017-01-20 19:51:53 -05:00
Taylor Otwell
9df814e512 Tweak a few broadcasting configurations. 2016-08-05 15:44:29 -05:00
Taylor Otwell
fd569a3785 Name this option "retry_after" for clarity. 2016-07-22 14:53:03 -05:00
Taylor Otwell
3cc0388ed7 Use expire for consistency. 2016-07-22 14:40:53 -05:00
halaei
d3aff652bd expire jobs after 90 seconds 2016-06-29 12:11:40 +04:30
Graham Campbell
ce25be19eb Tweaked config 2016-04-05 11:15:06 +01:00
Taylor Otwell
ec0e06e783 cleaning up configs 2016-03-01 08:23:00 -06:00
Taylor Otwell
36db347a0c remove iron config. moved to package 2015-12-06 14:46:51 -06:00
Pulkit Jalan
72158f4a8f added queue prefix to match the framework 2015-12-01 20:27:51 +00:00
Graham Campbell
f2348b7897 Tweaked alignment 2015-10-30 18:19:00 +00:00
Taylor Otwell
54533fc037 spacing 2015-10-20 13:57:31 -07:00
Tuomas Koponen
77c5c1726f Change default value for queue.failed.database
Use same DB_CONNECTION enviroment variable for queue.failed.database config
2015-10-20 22:23:54 +03:00
Taylor Otwell
eacb058caf Connection setting in Redis queue. 2015-02-24 20:07:09 -06:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Jonathan Garbee
cb2c469a52 Remove executable status from queue config. 2015-02-05 11:03:35 -05:00
Joe Cohen
f8148e7ccd Typo 2015-01-18 23:07:32 -06:00
Carlos - 安正超
38e9a241db Modify the wording of env() default values 2014-12-30 10:06:17 +08:00
Taylor Otwell
49cbb23ac5 Sample database config. 2014-12-19 16:00:22 -06:00
Taylor Otwell
3646070dc1 Add expire option by default. 2014-12-16 16:10:19 -06:00
Taylor Otwell
93434d8679 Use the "Env" helper which has boolean support. 2014-12-15 13:07:04 -06:00
Taylor Otwell
ce48990bf2 Tweak some paths again. 2014-12-15 08:42:13 -06:00
Taylor Otwell
532297c109 Work on default project structure. 2014-12-08 09:31:31 -06:00
Taylor Otwell
48d1a0ce36 working on some configuration changes. 2014-12-03 21:59:42 -06:00
Taylor Otwell
372a6d4907 List null driver in list of queue drivers. 2014-11-25 09:31:10 -06:00