Commit Graph

64 Commits

Author SHA1 Message Date
Taylor Otwell 0071cc80c7 update drivers 2023-12-18 10:14:03 -06:00
Taylor Otwell db67662ca4 update maintenance defaults 2023-12-16 14:39:31 -06:00
Taylor Otwell feded74d9e wip 2023-12-16 14:35:04 -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
Domantas Petrauskas 3ac233abb2
Allow accessing APP_NAME in Vite (#6204) 2023-06-21 19:07:13 -04:00
Taylor Otwell 6092ff46b3 update example 2023-01-31 09:05:09 -06: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
Jess Archer 86b4b1b656
[9.x] Vite (#5904)
* Use Vite

* Gitignore Vite build directory

* Use CSS entry points

* Update plugin

* Linting

* Update plugin
2022-06-22 13:07:47 -05:00
Taylor Otwell 20b7e19a65 add default address 2022-02-14 12:25:37 -06:00
Reza Amini 409992eed0
[9.x] Make .env.example sync with new changes (#5757)
In this PR #5568  the key has been changed!
2022-01-02 12:19:56 -06:00
Nuno Maduro 1980ca13ea
[8.x] Logs deprecations instead of treating them as exceptions (#5711)
* Logs deprecations instead of treating them as exceptions

* formatting

Co-authored-by: Taylor Otwell <taylorotwell@gmail.com>
2021-10-19 08:42:24 -05:00
Taylor Otwell c5d38d469a update skeleton for filesystem tweaks to make sail usage easier 2021-05-18 17:01:26 -05:00
Taylor Otwell 3b2ed46e65 update variables 2020-12-12 08:47:22 -06:00
Taylor Otwell 34368a4fab revert change 2020-12-08 09:45:05 -06:00
Taylor Otwell a895748980 update env file for sail 2020-12-08 09:04:09 -06:00
Ali Shaikh 6bfe68365d
[8.x] Added 'LOG_LEVEL' env variable in .env.example (#5445)
* Added 'LOG_LEVEL' env variable in .env.example

Added 'LOG_LEVEL' env variable in .env.example to be consistant with the change in [#5442](https://github.com/laravel/laravel/pull/5442)

* Update .env.example

Co-authored-by: Dries Vints <dries@vints.io>
2020-10-09 07:40:20 -05:00
Dries Vints b1f35786eb
Merge branch 'master' into develop 2020-01-14 17:52:04 +01:00
Taylor Otwell 61ec16fe39 work on mail configuration file 2020-01-08 17:10:37 -06:00
Taylor Otwell 76d822768d update mail configuration file 2020-01-08 17:01:42 -06:00
Aimeos eca7bc7d66
Use file session driver again 2020-01-08 12:44:22 +01:00
Anton Komarev b2734a9c31 Add MAIL_FROM_ADDRESS & MAIL_FROM_NAME to .env file (#5180) 2019-12-18 11:17:32 -06:00
Taylor Otwell f48e2d500c change some default settings 2019-12-13 22:42:46 -06:00
Taylor Otwell 6f3d68f67f use generic default db config 2019-06-04 08:10:26 -05:00
Taylor Otwell f84a69ee85 add bucket to env example 2019-02-26 16:37:18 -06:00
Taylor Otwell ff4f40fbab set default region 2019-02-26 14:47:40 -06:00
Taylor Otwell 87667b25ae update env variable stubs 2018-12-18 09:09:55 -06:00
Taylor Otwell c30adc88c1 adjust variable name 2018-03-13 13:38:47 -05:00
Taylor Otwell b78f5bd6e9 change env example 2018-01-26 14:42:08 -06:00
Taylor Otwell 2db1e0c5e8 add mix keys to example 2018-01-26 09:51:03 -06:00
Taylor Otwell acabdff2e3 update log configuration file 2018-01-04 15:28:26 -06:00
Taylor Otwell a32af97ede
Update .env.example 2017-12-24 08:11:41 -06:00
Mohamed Said 84b126d90d include cluster in pusher config 2017-12-24 13:22:35 +02:00
Caleb Porzio 084f100045 Load config.session.lifetime from env file 2017-10-04 09:52:03 -04:00
Matthew Davis 323e553f33 Make app name configurable in environment file 2017-04-03 20:07:41 +01:00
Ben Sampson 01fa7e37db Mailtrap now reference smtp. for their host value. 2017-03-17 16:18:18 +00: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
Роман Сохарев 9c7fad23e7 Change .env PUSHER_* params order
jsut same order ![](http://dl2.joxi.net/drive/2016/08/25/0005/0117/381045/45/81e6171678.jpg)
2016-08-25 05:57:45 +07:00
Taylor Otwell 268953862f fix order 2016-08-19 16:24:19 -05:00
Frank Sepulveda 8998cf5533 Add BROADCAST_DRIVER on .env
Having pusher keys, the file should contain the key for the broadcast also.
2016-08-19 10:42:01 -07:00
Taylor Otwell ffd7ad912e Revert recent changes to env file. 2016-08-19 07:20:12 -05:00
Taylor Otwell 655dbadd1e tweaking default setup 2016-08-11 14:47:29 -05:00
Taylor Otwell 196c267562 resolve conflicts and clean up file 2016-08-04 08:21:57 -05:00
Phil Bates bcf3935071 Wrap .env.example variable values in quotes
When the developer copies .env.example to .env they are unlikely to
add quotes to the values in .env. When the developer needs to
set the value of an environment variable to a value containing a
space, as none of the existing values in .env are quoted, the
developer is unlikely to wrap this new value with spaces in quotes.
This will result in an error, as The vlucas/phpdotenv library throws
an error when setting an environment variable to a value with a space.

Quote all default environment variables by default, reducing the
likelihood of the developer ever receiving the error relating to
environment variables needing to be quoted when they contain spaces.

This excludes true, null etc. even though wrapping them in quotes
would still result in the desired behaviour, as it is more intuitive
to see these special types not wrapped in quotes.

The current default values in .env.example don't contain any spaces,
so this commit will make no difference out of the box; its only
purpose is to help out the developer further down the line on the day
when they need to set an environment variable to a value containing
spaces.

Also, the vlucas/phpdotenv library docs currently uses quoted
variables in every example, so quoting .env.example's values will lead
to more consistency with those docs. This will likely stop any
confusion for the developer when reading the vlucas/phpdotenv docs.

See laravel/framework#14586, laravel/docs#2223
2016-08-02 13:55:08 +01:00
crynobone 007c0190a3 [5.2] Remove default APP_KEY value
Signed-off-by: crynobone <crynobone@gmail.com>
2016-08-02 08:09:41 +08:00
Taylor Otwell 767801a317 working on formatting 2016-06-04 09:37:32 -05:00
Michael Dyrynda 7259c265e6 Add application log level configuration
This config option ties in with changes in fbd6e77 that were tagged in
v5.2.35 of the framework.
2016-06-04 09:58:04 +09:30
Michael Burton fb0f915d4b Update .env.example
add DB_CONNECTION as env variable - it is already checked for in config/database.php
2016-03-25 11:53:57 +00:00
TGM 9fc55e8464 Added DB_PORT as a default enviroment variable 2016-03-01 14:29:05 +02:00