Commit Graph

6949 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 645e13d690 fix conflicts 2023-11-28 13:35:59 -06:00
Nuno Maduro 73cf5bc5bc
[10.x] Fixes missing property description (#6275)
* Fixes missing property description

* Update UserFactory.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-11-20 09:20:28 -06:00
driesvints 4d3c3a130f Update CHANGELOG 2023-11-14 18:50:10 +00:00
Eliezer Margareten a546b52b3b
Update package.json (#6272) 2023-11-13 10:36:45 -06:00
Taylor Otwell de6d4f58cc fixing conflicts 2023-11-06 17:31:18 -06:00
driesvints 40a7605dc1 Update CHANGELOG 2023-11-02 13:49:26 +00:00
Taylor Otwell 024c86a24b
Revert "Let database handle default collation (#6241)" (#6266)
This reverts commit 74c5a01b09.
2023-11-02 08:42:28 -05:00
driesvints c7098938d3 Update CHANGELOG 2023-10-31 15:25:43 +00: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
Mior Muhammad Zaki b0b29e1296
[10.x] Update minimum `laravel/sanctum` (#6261)
PR #6234 updated the configuration but it depends on Sanctum 3.3. This PR avoids installing Sanctum 3.2 with the new config.
2023-10-25 09:29:35 -05:00
Julius Kiekbusch 424c99c5b9
Set new Sail constraint (#6260) 2023-10-24 12:03:22 -05:00
Tim MacDonald 7fe97a165a
[10.x] Update fixture hash to match testing cost (#6259)
* Update fixture hash to match testing cost

* Conditionally use lower cost in tests

* use hash facade and memoize

* remove import

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-10-24 09:11:07 -05:00
Nuno Maduro 036ea83da2
Uses `actions/checkout@v4` 2023-10-17 14:17:21 +01:00
Nuno Maduro 96fb350fb5
Re-adds tinker (#6254) 2023-10-13 14:51:55 -05:00
Nuno Maduro 645ab9030f
Fixes build of `dev-master` (#6252) 2023-10-12 09:39:09 -05:00
Martin Bastien 25070a3ffb
Fix typo in the comment for token prefix (sanctum config) (#6248) 2023-09-26 20:37:09 -05:00
Taylor Otwell 960ea7b325
Update README.md 2023-09-25 16:38:15 -05:00
Taylor Otwell 78243dda89
Update README.md 2023-09-25 16:29:45 -05:00
Julius Kiekbusch 8e5f0e5d00
Use 12 bcrypt rounds for password in UserFactory (#6247) 2023-09-22 13:03:48 -05:00
Stephen Rees-Carter 540cec038f
Increase bcrypt rounds to 12 (#6245) 2023-09-22 10:06:29 -05:00
Julius Kiekbusch 88695a7cf4
Add PHP 8.3 to Tests Matrix (#6244) 2023-09-20 08:58:12 -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
driesvints 56c6f6b6b6 Update CHANGELOG 2023-08-15 15:27:37 +00:00
Andréas Lundgren 36047268f1
Bump `laravel-vite-plugin` to latest version (#6224) 2023-08-10 09:19:31 +02:00
driesvints 04a8e8553e Update CHANGELOG 2023-07-11 14:38:41 +00:00
Taylor Otwell f419821bd8 shorten directories 2023-06-30 10:18:14 -05:00
Benedikt Franke 6c1a39b5b3
Omit default values for suffix in phpunit.xml (#6210)
The values specified for `suffix` are their respective defaults and can be omitted.
2023-06-30 10:16:51 -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
Domantas Petrauskas 3ac233abb2
Allow accessing APP_NAME in Vite (#6204) 2023-06-21 19:07:13 -04:00
driesvints f317722348 Update CHANGELOG 2023-06-20 15:53:51 +00:00
Eliezer Margareten 84991f2301
Update Kernel.php (#6193) 2023-06-07 08:20:56 -05:00
driesvints a410a5af42 Update CHANGELOG 2023-06-06 14:54:05 +00:00
Taylor Otwell a5fddf7bc3 fix conflicts 2023-06-01 13:51:23 -05:00
Dries Vints b1011d1687 Laravel v11 compatible versions 2023-06-01 13:50:54 -05:00
Dries Vints 64173fbedf dev stability 2023-06-01 13:49:58 -05:00
Dries Vints 64f3d149cb Prepare v11 2023-06-01 13:49:58 -05:00
Taylor Otwell 85203d687e update description 2023-06-01 11:12:28 -05:00
driesvints 812bfb6911 Update CHANGELOG 2023-05-24 13:24:31 +00:00
Taylor Otwell a6bfbc7f90 add lock path 2023-05-23 16:45:40 -05:00
driesvints fb8e9cee79 Update CHANGELOG 2023-05-16 15:38:55 +00: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
Eliezer Margareten 7e0a2db2e0
Add hashed cast to user password (#6171)
* Add `hashed` cast to user password

* Update composer.json
2023-05-10 13:51:00 -05:00