50 Commits

Author SHA1 Message Date
Mior Muhammad Zaki
4760fcd6c5
Sync session.lifetime configuration (#6522)
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
See 066b740f14/config/session.php (L35)

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
2025-01-23 08:05:06 -06:00
Jonathan Goode
3cb22426e1
Add missing roundrobin transport driver config (#6392) 2024-04-09 09:13:45 -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
Taylor Otwell
939b0ce9ba remove session key 2022-02-04 09:34:38 -06:00
Anjorin Damilare
8819ee7097
[9.x]: remove redundant argument null since default parameter is null (#5791) 2022-02-02 08:41:54 -06:00
Taylor Otwell
d43dcb1c54
document json session serialization (#5787) 2022-02-01 11:42:34 -06:00
Hiren Keraliya
d3efbaab58
[8.x] Fixed grammar mistake (#5611)
* Grammar mistakes

* Update session.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-05-17 08:15:26 -05:00
Taylor Otwell
c10489131e fix formatting 2020-05-18 10:47:20 -05:00
Taylor Otwell
2a2522d882 fix wording 2020-03-29 10:38:33 -05:00
Mathieu TUDISCO
f93f4ad8bf
Fix session config changes (#5261)
* Fix session config changes

* Update session.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2020-03-13 14:53:56 -05:00
Dries Vints
b1f35786eb
Merge branch 'master' into develop 2020-01-14 17:52:04 +01:00
Aimeos
f44f065a2b
Use file session driver again 2020-01-08 12:44:53 +01:00
Taylor Otwell
f589a7e897 Merge branch 'master' into develop 2019-12-18 12:24:10 -06:00
Taylor Otwell
dd93aca597 Merge branch 'master' of github.com:laravel/laravel 2019-12-13 22:43:22 -06:00
Taylor Otwell
f48e2d500c change some default settings 2019-12-13 22:42:46 -06:00
Bert Heyman
136085bfd8 Add "none" to supported same site options in session config (#5174) 2019-12-13 08:18:09 -06:00
Graham Campbell
2913a55d87 [7.x] Switch to Symfony 5 (#5157)
* Update exception handler

* Explictly specify 'lax' same site config

* Use the null secure option for session cookies
2019-11-25 08:46:29 -06:00
Taylor Otwell
f795055577 tweak wording 2019-01-10 15:21:07 -06:00
Taylor Otwell
1be5e29753 add dynamo to stubs 2019-01-10 15:18:58 -06:00
Taylor Otwell
361a6b71da use str class 2018-09-28 15:55:56 -05:00
Danijel K
b9ac4417ee
corrected bad copy paste 2018-08-25 18:45:33 +02:00
Danijel K
375b7c6a43
Extract core 2 session configurations to environment
In the spirit of JMac & LaravelShift I've extracted 2 session variables to the environment file. Not 'just because' but rather that one is able to set SESSION_DRIVER to redis, but unable to set a connection without touching the core session config file.
2018-08-25 18:44:30 +02:00
Caleb Porzio
084f100045 Load config.session.lifetime from env file 2017-10-04 09:52:03 -04:00
Taylor Otwell
df5b100521 formatting 2017-06-29 13:36:21 -05:00
Yitzchok Willroth
28719679b7 🔧 Slugify new session.cookie to comply with RFC 6265. 2017-06-29 13:42:31 -04:00
Yitzchok Willroth
a7f2c060b2 🔧 🔧 Reduce discoverability of session cookie name.
Derives session.cookie from SESSION_COOKIE, falling back to (snake_cased) APP_NAME . '_session', falling back to 'laravel_session' (current) in order to make it less discoverable, thereby (slightly) reducing threat vector.
2017-06-29 12:12:19 -04:00
Taylor Otwell
864a82918e fix comment 2017-03-06 08:50:01 -06:00
Fernando Henrique Bandeira
a15f3ca8a9 Add Same-site to config 2017-03-06 08:56:41 -03:00
Jason McCreary
41b0560375 Environment configuration for HTTPS only cookie 2016-09-01 21:22:34 -04:00
Taylor Otwell
d72e3f3af5 fix conflicts 2016-07-09 11:28:21 -05:00
Jean Ragouin
7e4c6e84df Added session domain env configuration
Session domain value available with env configuration
https://github.com/laravel/laravel/pull/3806
2016-06-22 23:10:07 +08:00
Taylor Otwell
a97b9e0c7c fix comment 2016-05-04 09:31:54 -05:00
Tom Castleman
d68d4dc9cd adds configuration for session cache store 2016-05-02 17:27:52 +01:00
Taylor Otwell
e52b1f71d5 fix wording 2016-03-21 09:13:22 -05:00
mzaalan
9d14fe2d7e Set HttpOnly flag 2016-03-21 14:12:38 +02:00
Jimmy Puckett
4ee6523dfa Using the path parameter in the path method. 2015-05-28 15:31:26 -04:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Carlos - 安正超
38e9a241db Modify the wording of env() default values 2014-12-30 10:06:17 +08:00
Taylor Otwell
7b892e2452 Allow session encryption. 2014-12-23 16:18:38 -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
da7443abba Tweak some paths. 2014-10-02 19:36:03 -05:00
Taylor Otwell
76c84d8652 Convert configuration PHP 5.4 arrays. 2014-08-24 14:03:58 -05:00
Taylor Otwell
9aae50e501 Working on the default app structure. 2014-08-18 22:46:16 -05:00
Taylor Otwell
d9f2ba84c9 2.0 modular refactoring. 2011-08-18 23:23:57 -05:00
Taylor Otwell
1e90e42404 first commit of 2.0 2011-08-18 19:56:29 -05:00