Commit Graph

36 Commits

Author SHA1 Message Date
f1b68e5e78 Version 2.0 2026-05-12 09:23:05 +00:00
efa97b6c71 them log, chinh upload
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
2026-05-09 11:00:59 +00:00
3a8db5cae6 feat: granular permissions, export backup, user/role management
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
- PermissionSeeder: 29 permissions with role mapping (admin/manager/staff)
- Policies updated to use hasPermissionTo() instead of hasRole()
- ExportBackup command: JSON per-table backup with chunk processing
- UserResource: CRUD users with role assignment (admin only)
- RoleResource: CRUD roles with permission assignment (admin only)
- UserPolicy + RolePolicy: admin-only access control
- ImportCskh: detailed skip logging with color in dry-run mode
- Widgets: permission-based visibility checks
- Tests: 8/8 pass (21 assertions)
2026-05-02 04:47:10 +00:00
6ef2e9fe4e nang cap san sang import 2026-05-01 04:33:00 +00: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
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
Nuno Maduro
33ceba78ba Removes the commands property (#5727) 2021-11-18 10:18:32 -06:00
Taylor Otwell
12c28822f4 one liner 2019-12-20 14:14:01 -06:00
Taylor Otwell
ebc18e3aef update comment 2017-07-17 09:12:08 -05:00
Taylor Otwell
5d54c21ea8 auto loads commands 2017-07-17 09:11:10 -05:00
Taylor Otwell
c7a1c7d773 Ship a console routes file by default. 🌊 2016-08-16 19:44:31 -05:00
Taylor Otwell
59f2d49074 stub out commands method in console kernel 2016-05-09 11:16:31 -05:00
Vinicius Reis
8f6a6d8df0 Disable demonstration command
If the purpose of the command is to demonstrate, does not become nescessário leave it enabled by default.
2015-12-22 17:50:14 -02:00
Yahya Uddin
7398548320 Remove unnecessary fully quantified name
The class is unnessarily fully quantified and is an warning that is also flagged up in popular IDE's such as PHPStorm. It is also arguably bad practice as it can lead to problems if directories are moved in the future.
2015-11-25 00:12:44 +00:00
Nicolas Widart
58db25b9f5 Use the ::class notation
Prefix the namespace with \
2015-06-05 15:45:08 +02:00
Graham Campbell
bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Taylor Otwell
41472b79db Use signature to define name. 2015-05-13 13:44:43 -05:00
Taylor Otwell
8909e75552 Some spacing. 2015-03-02 15:31:27 -06:00
Taylor Otwell
4c78958b5b Tweak a few things. 2015-02-22 22:37:16 -06:00
Taylor Otwell
cc2139ac91 Tweaking a few things. 2015-02-22 21:56:03 -06:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Mike Dugan
96e64ef66c remove unused use statements 2015-02-13 15:10:04 -05:00
Taylor Otwell
ce20ef22c1 Remove command suffix. 2015-01-07 15:29:01 -06:00
Taylor Otwell
dc384fe1f5 Stub out some folders for jobs / commands and events. 2014-12-27 16:45:14 -06:00
Codeklopper
e05d7440b2 Unused exception reference 2014-11-27 11:39:23 +01:00
Taylor Otwell
994e099928 Update syntax. 2014-11-19 19:49:18 -06:00
Taylor Otwell
536fe29b6b Remove extra semicolon. 2014-11-19 08:15:55 -06:00
Taylor Otwell
313abe624d Use real command name. 2014-11-18 23:12:28 -06:00
Taylor Otwell
a7e6a89c91 Add scheduled commands. 2014-11-18 22:48:38 -06:00
Taylor Otwell
1209ce7657 Working on exception handling. WIP. 2014-11-03 16:45:26 -06:00
Taylor Otwell
9aed9debca Tweak how console commands are registered. 2014-10-21 10:27:26 -05:00
Taylor Otwell
bcc539ee62 Move bootstraps to base classes. 2014-10-20 11:29:33 -05:00
Taylor Otwell
4301348646 Large refactor of HTTP and Console stack. 2014-10-20 11:14:41 -05:00
ajschmaltz
c993970a0f Spellcheck 2014-09-02 19:48:55 -04:00
Taylor Otwell
177d1ebb7a Mega work on structure. 2014-08-20 00:26:14 -05:00
Taylor Otwell
80a60552d7 Rename. 2014-08-18 23:43:10 -05:00