Commit Graph

767 Commits

Author SHA1 Message Date
lq
8ea4f2bafd 项目相关优化 2025-05-08 13:28:56 +08:00
lq
e68c2dc663 项目列表
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
2025-05-07 23:40:40 +08:00
lq
6b4d1e5be3 项目列表 2025-05-07 23:40:31 +08:00
lq
60faecae99 项目列表 2025-05-07 22:44:15 +08:00
lq
61acb0de5a OSS封装 2025-05-07 22:28:56 +08:00
lq
dabef7a5a0 OSS封装 2025-05-07 22:24:01 +08:00
lq
8a99bcb904 部分前台接口 2025-05-07 16:52:49 +08:00
lq
d3bb8380e2 前台部分接口 2025-05-07 14:48:34 +08:00
lq
6e963b23b0 项目相关接口、图片视频上传
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
2025-05-06 17:00:02 +08:00
lq
cd304275b8 项目相关接口、图片视频上传 2025-05-06 16:18:22 +08:00
lq
cbd0b19b91 OSS封装
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
2025-05-05 23:48:59 +08:00
lq
36658dc184 注册接口 2025-05-05 23:48:21 +08:00
lq
c61357eca1 注册接口 2025-05-05 20:23:01 +08:00
lq
91a1d06b53 角色相关(列表和下拉框)、用户查询、项目部分API 2025-05-05 17:00:08 +08:00
lq
2609d009ed 角色相关(列表和下拉框)、用户查询、项目部分API 2025-05-05 16:44:23 +08:00
lq
7c8b090940 用户相关api、jwt接入 2025-05-05 14:20:37 +08:00
lq
bd26d52fff 用户相关api、jwt接入 2025-05-05 14:20:17 +08:00
lq
147b2d3fd5 登录注册功能 2025-05-05 09:44:50 +08:00
lq
db54446f8b 路由封装 2025-05-05 08:15:50 +08:00
lq
0bfe7786d3 基类和工具类
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
2025-05-04 22:42:51 +08:00
lq
ba260c2bf4 模型关联数据修正
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
2025-04-28 17:00:09 +08:00
lq
994ecb2488 模型关系设置 2025-04-28 16:45:23 +08:00
lq
87ac792634 模型创建 2025-04-28 16:18:47 +08:00
lq
dfb7acab05 模型创建 2025-04-28 16:15:09 +08:00
Pavel
8b67958f49 Narrow down array types (#6497) 2024-11-21 08:54:46 -06:00
Taylor Otwell
2eacb3d0f0 wip 2024-11-18 08:18:44 -06:00
Andrew Brown
3b146114e2 match HidesAttributes docblocks (#6495)
the docblock in `HidesAttributes` was updated in #42512, so this child class should be using the same.

otherwise PHPStan throws a "PHPDoc type array<int, string> of property App\Models\User::$hidden is not covariant with PHPDoc type list<string> of  property Illuminate\Database\Eloquent\Model::$hidden" error
2024-11-18 08:18:13 -06:00
Punyapal Shah
c9c8fb9ee7 Refactor User model to use HasFactory trait and add type hint for UserFactory (#6453) 2024-09-19 06:22:19 -05: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
Eliezer Margareten
84991f2301 Update Kernel.php (#6193) 2023-06-07 08:20: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
Taylor Otwell
ebf9d30bf3 [10.x] Minor skeleton slimming (#6159)
* remove rate limiter from route provider by default

* remove policy place holder

* remove broadcast skeleton in favor of new provider in core

* use default provider collection

* Remove unnecessary properties from exception handler.

* add back broadcast provider

* update comment

* add rate limiting

* Apply fixes from StyleCI

* fix formatting

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-04-15 16:53:39 -05:00
Taylor Otwell
7cc6699c3d clean up comment 2023-04-11 17:17:24 -05:00
Taylor Otwell
3986d4c540 remove unneeded call 2023-02-16 13:38:12 -06:00
Taylor Otwell
edcbe6de7c rename property for clarity 2023-01-27 14:08:28 +00:00
Jason McCreary
de868f0fc7 Use nullable typing (#6084) 2023-01-27 11:53:58 +00:00
Taylor Otwell
f62d260c76 remove dispatches job trait 2023-01-25 18:08:59 +00:00
Nuno Maduro
55af5469c3 [10.x] Uses PHP Native Type Declarations 🐘 (#6010)
* Adds basic typing around method's arguments and return types

* Adds missing `closure` type

* Adds typing on tests

* Fixes `RedirectIfAuthenticated`

* Fixes `Authenticate`

* Improves `RedirectIfAuthenticated` types

* Fixes user factory `unverified` return type
2023-01-03 10:35:24 +01:00
Taylor Otwell
e2e25f607a use except 2022-08-20 12:46:21 -05:00
Taylor Otwell
858a3ca662 wip 2022-08-15 10:21:08 -05:00
Taylor Otwell
951c9c8501 wip 2022-08-15 10:20:30 -05:00
Stephen Rees-Carter
dbced6ac8c Add ValidateSignature middleware for ignore params (#5942)
* Add ValidateSignature middleware for ignore params

* Comment out query parameters by default

* Remove leading slash

* Update Kernel ValidateSignature middleware path
2022-08-15 10:19:56 -05:00
Nuno Maduro
fa5e54a2ab [9.x] Uses laravel/pint for styling (#5945)
* Uses `laravel/pint` for styling

* Makes `.styleci.yml` ignored on export

* Update composer.json

Co-authored-by: Dries Vints <dries@vints.io>
2022-07-15 08:38:49 -05:00
Taylor Otwell
7216fa7e9a a few wording changes 2022-05-05 14:52:25 -05:00
Taylor Otwell
d5d2b67dcb fix docblock 2022-04-12 09:34:17 -05:00
Taylor Otwell
a8cefc2dd1 update wording 2022-04-12 09:31:23 -05:00
Taylor Otwell
a507e14243 add levels to handler 2022-04-12 09:30:48 -05:00
Ostap Brehin
b630eae0b3 Update RouteServiceProvider.php (#5862) 2022-04-11 09:07:05 -05:00
Taylor Otwell
d650fa2a30 [9.x] Make authenticate session a route middleware (#5842)
* make authenticate session a route middleware

* Update Kernel.php
2022-03-29 09:48:17 -05:00
Dries Vints
ecf7b06c4b Replace Laravel CORS package (#5825) 2022-02-22 09:42:30 -06:00