Commit Graph

27 Commits

Author SHA1 Message Date
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
Jesse Leite 953eae2938
Bring back cluster config option, as required by pusher-js v8.0. (#6174) 2023-05-12 13:39:56 -05: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
rennokki c97ba79ab3
[9.x] Add client_options to Pusher driver (#5743)
* Add client_options to Pusher driver

* Update broadcasting.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-12-08 07:58:10 -06:00
Khaled 6d082c81e5
add "ably" in comment as a broadcast connection (#5531)
'ably' was added in the connections array, but the comment was not updated to reflect this fact.
2021-02-06 18:35:22 -06:00
Taylor Otwell 5182e9c6de add ably entry 2020-11-17 17:07:32 -06:00
Miloš Gavrilović afb7cd7311 update deprecated pusher option (#5058) 2019-07-11 09:03:22 -06:00
Taylor Otwell a4af0b5318
Update broadcasting.php 2017-12-24 08:11:34 -06:00
Mohamed Said 80b59fd375 fix style 2017-12-24 13:24:14 +02:00
Mohamed Said 84b126d90d include cluster in pusher config 2017-12-24 13:22:35 +02:00
Theo Kouzelis 1a5f5c6159 [5.4] Change PUSHER enviroment variable names 2017-01-18 20:56:57 +00:00
Taylor Otwell 7b3e884757 Revert "[5.4] Change PUSHER enviroment variable names" 2017-01-04 15:39:53 -06:00
Theo Kouzelis de750d9ffb Change PUSHER enviroment variable names
pusher.com's copy and paste .env snippet uses enviroment variables that
all start with "PUSHER_APP". This commit brings the config files in line
with pusher.com
2017-01-04 00:29:19 +00:00
Taylor Otwell 51113bd531 Default broadcasting driver to null. 2016-08-05 15:51:22 -05:00
Taylor Otwell 9df814e512 Tweak a few broadcasting configurations. 2016-08-05 15:44:29 -05:00
Jerguš Lejko a20533c511 List supported drives in cache and broadcasting configs 2016-06-14 20:15:26 +02:00
Taylor Otwell f6b05ee3ce tweak options 2015-10-08 09:45:11 -05:00
Ian Olson bcbc2f8265 Updated trailing comma on array key => value to pass StyleCI. 2015-10-04 23:53:11 -05:00
Ian Olson 6917c35c33 Added options to the broadcasting pusher configuration file. 2015-10-04 23:46:56 -05:00
Mulia Arifandi Nasution 4341e3c933 Remove unnecessary whitespace 2015-05-10 13:56:52 +07:00
Patrick Brouwers 1c4dcea2a2 Add log driver to broadcasting connections 2015-05-06 11:02:13 +02:00
Taylor Otwell b7c237397b Redis configuration. 2015-04-27 15:52:54 -05:00
Taylor Otwell f8da2892bd Tweak configuration file name. 2015-04-27 15:22:01 -05:00