Commit Graph

138 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
fb1f82e1a0 Chinh sua giao dien phu hop tailwind css va 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-05 09:25:28 +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
7c5055075b colorful
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-01 12:54:12 +00:00
6ef2e9fe4e nang cap san sang import 2026-05-01 04:33:00 +00:00
6c74c17b48 fix: attachment file handling - real files, inline preview, click to open
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
- FileService: use Storage::temporaryUrl() standard API instead of manual signed route
- FileService: added isImage() and getPreviewUrl() helpers
- Seeder: create actual files on disk instead of fake paths
- Edit Feedback: new 'Attachments' section showing all feedback files with thumbnails
- Interactions modal: image preview thumbnails + inline click-to-open
- New footer layout: edit-footer.blade.php wrapper for attachments + similar cases
2026-04-27 09:30:20 +00:00
887765bbd7 feat: AfterSales CRM - SOP compliant real-estate customer care system
- Departments + cross-department transfer workflow
- Role-based closing (staff→resolved, manager→closed) with proof_of_resolution
- Private file storage with collection system + temporary signed URLs
- Dashboard: resolved tickets table, stats, handler performance bar chart
- Spatie RBAC (admin/manager/staff)
- Notifications: TicketTransferred, TicketClosed (database + mail)
- Pest tests: 8 tests, 21 assertions
- Docker production-ready (Dockerfile + compose + entrypoint)
2026-04-27 05:29:48 +00:00
Taylor Otwell
8ad7826f56 increase attempt count 2026-04-16 08:58:08 -05:00
Taylor Otwell
01f698ee4d update migration 2026-03-17 08:43:00 -05:00
Taylor Otwell
945f4e5a9f Revert index 2026-03-14 11:54:00 -05:00
nuno maduro
f1f2befaa8 Uses unqualified names (#6760) 2026-03-10 14:58:02 -05:00
Taylor Otwell
b36082a239 update index 2026-03-09 09:42:33 -05:00
Jack Bayliss
e713de24b8 Revert "add index to failed jobs" (#6739)
This reverts commit 36281b285a.
2026-01-15 06:49:36 -08:00
Jack Bayliss
be7c4b76ec [12.x] Update jobs/cache migrations (#6736)
* Update 0001_01_01_000001_create_cache_table.php

* Update 0001_01_01_000002_create_jobs_table.php

* Update 0001_01_01_000002_create_jobs_table.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2026-01-13 08:45:09 -06:00
Taylor Otwell
36281b285a add index to failed jobs 2026-01-12 08:42:42 -06:00
Taylor Otwell
b45fe690bd disable model events by default when seeding 2025-10-07 14:49:30 -05:00
Taylor Otwell
e23c0c1bfd SQLite for local dev (#6322)
* update values for a sqlite default world

* migrate on post create project

* touch database

* fix typo
2024-01-20 16:02:54 -06:00
Taylor Otwell
39532486be wip 2023-12-18 08:27:09 -06:00
Taylor Otwell
3f1426a55a Revert "Rename migration tables (#6295)" (#6298)
This reverts commit b86e53bc71.
2023-12-18 08:26:07 -06:00
Julius Kiekbusch
b86e53bc71 Rename migration tables (#6295) 2023-12-18 08:25:35 -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
Nuno Maduro
73cf5bc5bc [10.x] Fixes missing property description (#6275)
* Fixes missing property description

* Update UserFactory.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-11-20 09:20:28 -06:00
Tim MacDonald
7fe97a165a [10.x] Update fixture hash to match testing cost (#6259)
* Update fixture hash to match testing cost

* Conditionally use lower cost in tests

* use hash facade and memoize

* remove import

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-10-24 09:11:07 -05:00
Julius Kiekbusch
8e5f0e5d00 Use 12 bcrypt rounds for password in UserFactory (#6247) 2023-09-22 13:03:48 -05:00
Ngô Quốc Đạt
330995f6bd Remove redundant @return docblock in UserFactory (#6119) 2023-02-18 14:54:42 -06:00
Taylor Otwell
a28ad2966d rename password reset tokens table in skeleton 2023-01-30 16:53:14 -06:00
Dries Vints
8f5346e3af Merge branch '9.x'
# Conflicts:
#	CHANGELOG.md
2023-01-10 17:13:01 +01: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
Andrew Brown
091aa7d882 switch email to a primary key (#6064)
switching from a normal index here to a primary index works the same except for adding a `UNIQUE` constraint.

The `DatabaseTokenRepository` deletes existing records with an email first, before creating a new one, so this additional constraint will be okay.

https://github.com/laravel/framework/blob/9.x/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php#L88
2023-01-02 08:45:35 -06:00
Martin Ro
ad219e82aa Make email unique (#5978)
When seeding large amounts of users there is a chance for a duplicate entry SQL error because the email column is unique. 64e0175398/database/migrations/2014_10_12_000000_create_users_table.php (L19)
2022-09-02 09:10:54 -05:00
Taylor Otwell
7b17f5f326 use short closure 2022-08-20 12:22:43 -05:00
suyar
6e1103180b Update laravel/sanctum version (#5957) 2022-07-29 08:01:11 -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
0c3d1fabe5 use global functino 2022-06-22 11:02:43 -05:00
Dries Vints
5c5a300bfd [9.x] Add specific test user in seeder (#5879)
* Update DatabaseSeeder.php

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-05-05 08:53:49 -05:00
Choraimy Kroonstuiver
6479a60e95 Improve typing on user factory 2022-02-09 21:24:35 +01:00
Craig Morris
1db81e7e8c use FQN 2022-01-21 12:32:08 +00:00
Craig Morris
4c94086856 switch to extends 2022-01-21 12:21:38 +00:00
Craig Morris
7bff7c6c61 add type to UserFactory for generic parent class 2022-01-21 12:12:45 +00:00
Nuno Maduro
2a88c174b6 Imports without model events trait on seeds (#5745) 2021-12-10 07:16:58 -06:00
Dries Vints
d54907c27d Merge branch '8.x'
# Conflicts:
#	CHANGELOG.md
#	composer.json
2021-10-26 17:22:00 +02:00
Nuno Maduro
9915831d22 Guess database factory model by default (#5713) 2021-10-22 13:11:06 -05:00
Taylor Otwell
bdcb9681a6 fix conflicts 2021-10-02 10:47:56 -05:00
Markus Machatschek
2c644455da Use anonymous migration for personal_access_tokens table (#5698)
* Use new migration class name style for personal_access_tokens table

* Update 2019_12_14_000001_create_personal_access_tokens_table.php
2021-09-29 09:44:21 -05:00
JuanDMeGon
5f7395b289 Keeping access tokens migration id consistent (#5691)
This is just a tiny "fix," using id(); to be consistent with the other migrations already included in the framework.
2021-09-28 08:03:31 -05:00
Dries Vints
018bb3c157 Merge branch '8.x'
# Conflicts:
#	composer.json
2021-08-12 15:39:10 +02:00
Taylor Otwell
226d1bfc3c [8.x] Sanctum (#5663)
* initial sanctum poc

* add files

* remove token
2021-08-11 13:44:34 -05:00
Dries Vints
4ce641d571 Apply fixes from StyleCI (#5607) 2021-05-07 05:54:25 -05:00