29 Commits

Author SHA1 Message Date
Taylor Otwell
86c7c863d6 slim bootstrap file 2024-01-24 12:57:48 -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
emargareten
6f4cea4114
remove lodash (#6095) 2023-02-13 10:41:14 -06:00
Vytautas M
ca01443b96
[9.x] Support pusher-js v8.0 (#6059)
* Specify cluster for Pusher

* Update bootstrap.js

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-12-27 10:39:26 -06:00
Corné Veldman
d938bfd0d0
Changing .env to make Pusher work without editing the commented out part in the bootstrap.js (#6021)
* edit file

* This works for null, undefined and '', because it's JavaScript
2022-10-28 08:38:26 -05:00
Irsyad A. Panjaitan
fa4c8c17e0
Update bootstrap.js (#5929)
Before it was use `VITE_PUSHER_CLUSTER`, it should be `VITE_PUSHER_APP_CLUSTER`.
2022-07-01 13:37:51 -07: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
Jess Archer
2e3563d9aa
Switch to ESM imports (#5895)
This improves the transition for Vite users.
2022-05-27 17:36:33 -07:00
Mark van den Broek
2f8e55a9ec Rename encrypted to forceTLS. (#5159) 2019-11-25 08:10:36 -06:00
Taylor Otwell
6ff5d6c7b8 Merge branch 'master' into develop 2019-08-23 11:59:05 -05:00
Jess Archer
aa74fcb38f Remove manual adding of X-CSRF-TOKEN header (#5083)
This is unnessecery code because Axios already automatically adds
a X-XSRF-TOKEN header from the XSRF-TOKEN cookie encrypted value on
same-origin requests. The `VerifyCsrfToken` middleware and Passport's
`TokenGuard` already allow using the `X-XSRF-TOKEN` header.
2019-08-21 07:47:43 -05:00
Dries Vints
a5111cf70f
Merge branch 'master' into develop 2019-08-12 11:56:28 +02:00
Dries Vints
d5691a2e6d
Add missing trailing semicolon 2019-08-06 14:32:07 +02:00
Taylor Otwell
fc39b073f3 remove ui scaffolding 2019-06-27 19:57:39 -05:00
Dries Vints
91dc5ed286 Apply fixes from StyleCI 2019-04-22 14:06:03 +00:00
Andrew Gorpenko
66eeb3bca3
Fix unterminated statements
This tiny patch adds missing commas to the app.js file.
2019-02-26 15:51:24 +02:00
Dries Vints
2498f317d7
Remove unused Bootstrap class
This class isn't available in Bootstrap 4.
2019-01-23 15:23:51 +01:00
Jeffrey Way
dc58f95ebb Bump to Mix v4 2018-12-14 15:14:03 -05:00
Anders Jürisoo
c9046b2291
Fixed mixed up comment order 2018-11-27 07:52:25 +08:00
Aryeh Raber
52cedb64b1
Clean up 2018-11-13 16:41:07 +01:00
Aryeh Raber
7003366e99
Remove lodash dependency 2018-11-13 16:28:28 +01:00
Taylor Otwell
c2359fe119 wip 2018-11-02 10:42:02 -05:00
Taylor Otwell
ab8f3f37c2 update example 2018-11-02 10:13:11 -05:00
Taylor Otwell
990d58c78f uncomment 2018-11-02 10:12:37 -05:00
Taylor Otwell
05acbad5b6 formatting 2018-11-02 10:11:21 -05:00
Jonathan Reinink
4dadb9309d
Auto register Vue components 2018-11-02 09:25:16 -04:00
Daniel Bănciulea
4202ec978d fix running mix tasks error 2018-10-24 01:57:56 +03:00
Taylor Otwell
ff38d4e1a0 flatten resources more 2018-07-31 15:03:51 -05:00