50 Commits

Author SHA1 Message Date
StyleCI Bot
47fb90a8ca
Apply fixes from StyleCI 2024-06-20 14:41:46 +00:00
Nicolas Hedger
3fd8dd8539
Expose lock table name (#6423)
* Expose lock table name

* Update cache.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2024-06-20 09:41:28 -05:00
Jonathan Goode
cf0b40b878
Remove obsolete driver option (#6395) 2024-04-19 10:12:29 -05:00
Sergey Pashkevich
51c4166bfb
[11.x] Removed useless null parameter for env helper (cache.php) (#6374) 2024-03-15 11:18:22 +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
Taylor Otwell
a6bfbc7f90 add lock path 2023-05-23 16:45:40 -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
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
Taylor Otwell
637c85d624 wip 2021-05-14 10:09:46 -05:00
Seyed Morteza Ebadi
3131f789ae
Add Octane cache store (#5610) 2021-05-14 10:09:09 -05:00
Taylor Otwell
e8788a7688 update cache 2020-12-16 15:51:26 -06:00
Taylor Otwell
bc339f7123 add lock_connection 2020-12-16 15:51:26 -06:00
Paras Malhotra
3c814aa8e2
[8.x] Add missing null cache driver in config/cache.php (#5472) 2020-11-18 07:45:08 -06:00
Iman
3adc2196f7
Modify the cache.php docblocks (#5468)
In new versions of laravel we do not directly specify the "cache driver" anymore but rather a "cache store", so it does not make sense to mention the drivers up there since laravel supports any arbitrary values defined below it by the user.
2020-11-12 07:55:54 -06:00
Benedikt Franke
c9cf57a00c
Add serialize option to array cache config (#5244)
This documents the new configuration option from https://github.com/laravel/framework/pull/31295
2020-03-04 08:04:39 -06:00
Kristoffer Högberg
9530937958 Add DYNAMODB_ENDPOINT to the cache config (#5034)
This adds the DYNAMODB_ENDPOINT environment variable to the
dynamodb store of the cache cofig.

Its usage is implemented in the framework as laravel/framework#28600
2019-05-29 09:12:30 -05:00
Avtandil Kikabidze
b34328a166
Use correct env name for AWS region from env.example 2019-02-27 14:05:01 +04:00
Taylor Otwell
3a550dee85 Merge branch 'master' into develop 2019-01-11 08:53:23 -06:00
Taylor Otwell
1be5e29753 add dynamo to stubs 2019-01-10 15:18:58 -06:00
小克
322f7fb152
Remove extra whitespace 2019-01-09 11:21:41 +08:00
Taylor Otwell
622cdda7cf use one line 2018-09-14 10:38:31 -05:00
Taylor Otwell
a5fc02d832 use class 2018-09-14 10:38:02 -05:00
Barry vd. Heuvel
c3b99e971c Use seperate cache DB for Redis 2018-05-23 21:50:25 +02:00
ThunderbirdsX3
b8120bfb55 Update cache prefix.
Make cache prefix like session cookie.
2017-09-06 16:38:40 +07:00
Taylor Otwell
402b12f915 tweak default cache directory 2016-12-31 21:25:17 -06:00
Jorge González
82357a563a Remove extra whitespace in config/cache.php 2016-08-23 22:39:29 -05:00
Taylor Otwell
d72e3f3af5 fix conflicts 2016-07-09 11:28:21 -05:00
Jerguš Lejko
a20533c511 List supported drives in cache and broadcasting configs 2016-06-14 20:15:26 +02:00
Taylor Otwell
b358fe473d spacing 2016-05-01 10:07:37 -05:00
Tom Castleman
9dc2d60336 Add config for new Memcached features
Adds config for persistent connections, SASL authentication, and custom options
2016-04-30 14:11:55 +01:00
Taylor Otwell
ec0e06e783 cleaning up configs 2016-03-01 08:23:00 -06:00
Martin Bean
db6bb6a369 Make Memcached options configurable. 2016-01-28 15:38:52 +00:00
Graham Campbell
bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01: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
yuuki takezawa
ef6dc637dd fixed 2014-12-21 14:32:27 +09:00
Taylor Otwell
8f6db28661 Add connection settings to cache config. 2014-12-16 22:01:17 -06:00
Taylor Otwell
8d9bbc1c26 Update cache configuration. 2014-12-16 17:44:56 -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