From e2b471312cde93765522c29d059cb7a385870338 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sat, 3 Oct 2026 18:35:36 +0200 Subject: [PATCH] refactor: move backend in apps/backend --- .editorconfig => apps/backend/.editorconfig | 0 .gitattributes => apps/backend/.gitattributes | 0 .gitignore => apps/backend/.gitignore | 0 .../app}/Http/Controllers/AuthController.php | 5 +-- .../app}/Http/Controllers/Controller.php | 2 +- .../Http/Controllers/EventsController.php | 19 +++++----- .../Http/Controllers/ExportController.php | 5 +-- .../Controllers/NotificationsController.php | 3 +- .../Http/Controllers/SearchController.php | 6 ++-- .../app}/Http/Controllers/TasksController.php | 31 ++++++++-------- .../app}/Http/Controllers/UserController.php | 36 ++++++++++--------- .../app}/Mail/CreateUserByAdminMail.php | 2 +- .../app}/Mail/DeactivateAccountMail.php | 2 +- .../backend/app}/Mail/DeleteAccountMail.php | 2 +- .../app}/Mail/EmailChangeConfirmedMail.php | 2 +- .../Mail/EventParticipationCancelledMail.php | 4 +-- .../app}/Mail/NotifyEmailChangeMail.php | 2 +- .../backend/app}/Mail/RegisterMail.php | 2 +- .../app}/Mail/RequestEmailChangeMail.php | 2 +- .../backend/app}/Mail/TaskDateUpdateMail.php | 2 +- .../Mail/TaskParticipationCancelledMail.php | 4 +-- .../backend/app}/Mail/UpdatePasswordMail.php | 2 +- .../backend/app}/Mail/UpdateRoleMail.php | 2 +- .../backend/app}/Mail/ValidateMail.php | 2 +- .../app}/Mail/VolunteerAssignToTaskMail.php | 4 +-- .../app}/Mail/VolunteerUnassignToTaskMail.php | 4 +-- {app => apps/backend/app}/Models/Event.php | 2 +- {app => apps/backend/app}/Models/Task.php | 2 +- {app => apps/backend/app}/Models/User.php | 4 +-- .../app}/Notifications/EventDeleted.php | 7 ++-- .../app}/Notifications/TaskDateUpdated.php | 9 +++-- .../app}/Notifications/TaskDeleted.php | 9 +++-- .../app}/Notifications/UserRegistered.php | 7 ++-- .../Notifications/VolunteerAssignedToTask.php | 9 +++-- .../Notifications/VolunteerRoleUpdated.php | 5 ++- .../VolunteerUnassignedFromTask.php | 9 +++-- .../backend/app}/Observers/EventObserver.php | 7 ++-- .../backend/app}/Observers/UserObserver.php | 7 ++-- .../backend/app}/Policies/EventsPolicy.php | 5 ++- .../backend/app}/Policies/TasksPolicy.php | 5 ++- .../backend/app}/Policies/UsersPolicy.php | 4 +-- .../app}/Providers/AppServiceProvider.php | 13 +++---- .../Providers/BroadcastServiceProvider.php | 3 +- .../app}/Providers/GateServiceProvider.php | 14 ++++---- .../backend/app}/Services/FormatDate.php | 2 +- .../backend/app}/Services/GetRole.php | 2 +- .../app}/Services/TypesenseService.php | 8 +++-- .../backend/app}/Services/UserService.php | 4 +-- artisan => apps/backend/artisan | 2 +- {bootstrap => apps/backend/bootstrap}/app.php | 2 +- .../backend/bootstrap}/cache/.gitignore | 0 apps/backend/bootstrap/providers.php | 7 ++++ composer.json => apps/backend/composer.json | 0 composer.lock => apps/backend/composer.lock | 0 {config => apps/backend/config}/app.php | 0 {config => apps/backend/config}/auth.php | 2 +- .../backend/config}/broadcasting.php | 0 {config => apps/backend/config}/cache.php | 0 {config => apps/backend/config}/cors.php | 0 {config => apps/backend/config}/database.php | 0 .../backend/config}/filesystems.php | 0 {config => apps/backend/config}/logging.php | 0 {config => apps/backend/config}/mail.php | 0 {config => apps/backend/config}/queue.php | 0 {config => apps/backend/config}/sanctum.php | 0 {config => apps/backend/config}/services.php | 0 {config => apps/backend/config}/session.php | 0 .../backend/database}/.gitignore | 0 .../database}/factories/EventFactory.php | 4 +-- .../database}/factories/UserFactory.php | 5 +-- .../2025_10_13_213713_create_jobs_table.php | 0 .../2025_10_13_215246_create_users_table.php | 0 ...025_10_14_210658_create_sessions_table.php | 0 ...0940_add_remember_token_to_users_table.php | 0 .../2025_10_27_211752_create_events_table.php | 0 .../2025_11_09_144248_create_tasks_table.php | 5 +-- .../2025_11_14_081656_task_user.php | 0 .../2025_11_28_112359_create_cache_table.php | 0 ..._add_profile_photo_path_to_users_table.php | 0 ...3_28_150022_create_notifications_table.php | 0 .../database}/seeders/DatabaseSeeder.php | 5 ++- .../backend/database}/seeders/DevSeeder.php | 11 +++--- .../backend/database}/seeders/ProdSeeder.php | 9 +++-- .../backend/docker}/backups/16.sql | 0 .../backend/docker}/backups/19.sql | 0 .../backend/package-lock.json | 0 package.json => apps/backend/package.json | 0 phpunit.xml => apps/backend/phpunit.xml | 0 {public => apps/backend/public}/index.php | 2 +- .../backend/resources}/js/echo.js | 0 .../views/mails/createUserByAdmin.blade.php | 0 .../views/mails/deactivateAccount.blade.php | 0 .../views/mails/deleteAccount.blade.php | 0 .../mails/emailChangeConfirmed.blade.php | 0 .../eventParticipationCancelled.blade.php | 0 .../views/mails/notifyEmailChange.blade.php | 0 .../resources}/views/mails/register.blade.php | 0 .../views/mails/requestEmailChange.blade.php | 0 .../views/mails/taskDateUpdate.blade.php | 0 .../taskParticipationCancelled.blade.php | 0 .../views/mails/updatePassword.blade.php | 0 .../views/mails/updateRole.blade.php | 0 .../resources}/views/mails/validate.blade.php | 0 .../mails/volunteerAssignToTask.blade.php | 0 .../mails/volunteerUnassignToTask.blade.php | 0 apps/backend/routes/api.php | 22 ++++++++++++ {routes => apps/backend/routes}/auth.php | 4 +-- {routes => apps/backend/routes}/channels.php | 0 {routes => apps/backend/routes}/console.php | 0 {routes => apps/backend/routes}/events.php | 6 ++-- .../backend/routes}/notifications.php | 2 +- {routes => apps/backend/routes}/users.php | 4 +-- {routes => apps/backend/routes}/web.php | 0 .../backend/storage}/app/.gitignore | 0 .../backend/storage}/app/private/.gitignore | 0 .../backend/storage}/app/public/.gitignore | 0 .../backend/storage}/framework/.gitignore | 0 .../storage}/framework/cache/.gitignore | 0 .../storage}/framework/cache/data/.gitignore | 0 .../storage}/framework/sessions/.gitignore | 0 .../storage}/framework/testing/.gitignore | 0 .../storage}/framework/views/.gitignore | 0 .../backend/storage}/logs/.gitignore | 0 .../backend/tests}/Events/Create event.bru | 0 .../backend/tests}/Events/Delete event.bru | 0 .../backend/tests}/Events/Get all events.bru | 0 .../backend/tests}/Events/Get event tasks.bru | 0 .../backend/tests}/Events/Get event.bru | 0 .../backend/tests}/Events/Search events.bru | 0 .../backend/tests}/Events/Update event.bru | 0 .../backend/tests}/Events/folder.bru | 0 .../Events/tasks/Assign task to user.bru | 0 .../tests}/Events/tasks/Assign task.bru | 0 .../tests}/Events/tasks/Delete task.bru | 0 .../tests}/Events/tasks/Is user assigned.bru | 0 .../Events/tasks/Unassign task to user.bru | 0 .../tests}/Events/tasks/Unassign task.bru | 0 .../tests}/Events/tasks/Update Task.bru | 0 .../tests}/Events/tasks/create event task.bru | 0 .../backend/tests}/Events/tasks/folder.bru | 0 .../backend/tests}/Export/Export ICS.bru | 0 .../backend/tests}/Export/folder.bru | 0 .../backend/tests}/Get all roles.bru | 0 {tests => apps/backend/tests}/Login.bru | 0 {tests => apps/backend/tests}/Logout.bru | 0 .../Delete user notification.bru | 0 .../Notifications/Get user notifications.bru | 0 .../Notifications/Read notifications.bru | 0 .../backend/tests}/Notifications/folder.bru | 0 .../Profile photo/Delete profile photo.bru | 0 .../Profile photo/Get profile photo.bru | 0 .../Profile photo/Update profile photo.bru | 0 .../backend/tests}/Profile photo/folder.bru | 0 .../tests}/Users/Create user by admin.bru | 0 .../backend/tests}/Users/Create user.bru | 0 .../backend/tests}/Users/Deactivate user.bru | 0 .../tests}/Users/Delete user by id.bru | 0 .../backend/tests}/Users/Delete user.bru | 0 .../backend/tests}/Users/Get User.bru | 0 .../backend/tests}/Users/Get invalid user.bru | 0 .../tests}/Users/Get user task by task id.bru | 0 .../tests}/Users/Get user tasks by id.bru | 0 .../backend/tests}/Users/Get user tasks.bru | 0 .../backend/tests}/Users/Modify user role.bru | 0 .../backend/tests}/Users/Search users.bru | 0 .../backend/tests}/Users/Update User.bru | 0 .../backend/tests}/Users/Validate User.bru | 0 .../backend/tests}/Users/folder.bru | 0 .../backend/tests}/Users/get all users.bru | 0 {tests => apps/backend/tests}/bruno.json | 0 {tests => apps/backend/tests}/collection.bru | 0 .../backend/tests}/environments/dev.bru | 0 {tests => apps/backend/tests}/extractCSRF.js | 0 {tests => apps/backend/tests}/get CSRF.bru | 0 {tests => apps/backend/tests}/hello.bru | 0 {tests => apps/backend/tests}/me.bru | 0 bootstrap/providers.php | 7 ---- routes/api.php | 22 ------------ 178 files changed, 210 insertions(+), 193 deletions(-) rename .editorconfig => apps/backend/.editorconfig (100%) rename .gitattributes => apps/backend/.gitattributes (100%) rename .gitignore => apps/backend/.gitignore (100%) rename {app => apps/backend/app}/Http/Controllers/AuthController.php (87%) rename {app => apps/backend/app}/Http/Controllers/Controller.php (73%) rename {app => apps/backend/app}/Http/Controllers/EventsController.php (95%) rename {app => apps/backend/app}/Http/Controllers/ExportController.php (94%) rename {app => apps/backend/app}/Http/Controllers/NotificationsController.php (94%) rename {app => apps/backend/app}/Http/Controllers/SearchController.php (92%) rename {app => apps/backend/app}/Http/Controllers/TasksController.php (93%) rename {app => apps/backend/app}/Http/Controllers/UserController.php (95%) rename {app => apps/backend/app}/Mail/CreateUserByAdminMail.php (97%) rename {app => apps/backend/app}/Mail/DeactivateAccountMail.php (97%) rename {app => apps/backend/app}/Mail/DeleteAccountMail.php (97%) rename {app => apps/backend/app}/Mail/EmailChangeConfirmedMail.php (97%) rename {app => apps/backend/app}/Mail/EventParticipationCancelledMail.php (95%) rename {app => apps/backend/app}/Mail/NotifyEmailChangeMail.php (97%) rename {app => apps/backend/app}/Mail/RegisterMail.php (97%) rename {app => apps/backend/app}/Mail/RequestEmailChangeMail.php (97%) rename {app => apps/backend/app}/Mail/TaskDateUpdateMail.php (97%) rename {app => apps/backend/app}/Mail/TaskParticipationCancelledMail.php (95%) rename {app => apps/backend/app}/Mail/UpdatePasswordMail.php (97%) rename {app => apps/backend/app}/Mail/UpdateRoleMail.php (97%) rename {app => apps/backend/app}/Mail/ValidateMail.php (97%) rename {app => apps/backend/app}/Mail/VolunteerAssignToTaskMail.php (95%) rename {app => apps/backend/app}/Mail/VolunteerUnassignToTaskMail.php (95%) rename {app => apps/backend/app}/Models/Event.php (91%) rename {app => apps/backend/app}/Models/Task.php (92%) rename {app => apps/backend/app}/Models/User.php (91%) rename {app => apps/backend/app}/Notifications/EventDeleted.php (91%) rename {app => apps/backend/app}/Notifications/TaskDateUpdated.php (93%) rename {app => apps/backend/app}/Notifications/TaskDeleted.php (90%) rename {app => apps/backend/app}/Notifications/UserRegistered.php (93%) rename {app => apps/backend/app}/Notifications/VolunteerAssignedToTask.php (90%) rename {app => apps/backend/app}/Notifications/VolunteerRoleUpdated.php (94%) rename {app => apps/backend/app}/Notifications/VolunteerUnassignedFromTask.php (90%) rename {app => apps/backend/app}/Observers/EventObserver.php (71%) rename {app => apps/backend/app}/Observers/UserObserver.php (70%) rename {app => apps/backend/app}/Policies/EventsPolicy.php (85%) rename {app => apps/backend/app}/Policies/TasksPolicy.php (90%) rename {app => apps/backend/app}/Policies/UsersPolicy.php (92%) rename {app => apps/backend/app}/Providers/AppServiceProvider.php (79%) rename {app => apps/backend/app}/Providers/BroadcastServiceProvider.php (80%) rename {app => apps/backend/app}/Providers/GateServiceProvider.php (64%) rename {app => apps/backend/app}/Services/FormatDate.php (81%) rename {app => apps/backend/app}/Services/GetRole.php (92%) rename {app => apps/backend/app}/Services/TypesenseService.php (95%) rename {app => apps/backend/app}/Services/UserService.php (92%) rename artisan => apps/backend/artisan (87%) rename {bootstrap => apps/backend/bootstrap}/app.php (93%) rename {bootstrap => apps/backend/bootstrap}/cache/.gitignore (100%) create mode 100755 apps/backend/bootstrap/providers.php rename composer.json => apps/backend/composer.json (100%) rename composer.lock => apps/backend/composer.lock (100%) rename {config => apps/backend/config}/app.php (100%) rename {config => apps/backend/config}/auth.php (98%) rename {config => apps/backend/config}/broadcasting.php (100%) rename {config => apps/backend/config}/cache.php (100%) rename {config => apps/backend/config}/cors.php (100%) rename {config => apps/backend/config}/database.php (100%) rename {config => apps/backend/config}/filesystems.php (100%) rename {config => apps/backend/config}/logging.php (100%) rename {config => apps/backend/config}/mail.php (100%) rename {config => apps/backend/config}/queue.php (100%) rename {config => apps/backend/config}/sanctum.php (100%) rename {config => apps/backend/config}/services.php (100%) rename {config => apps/backend/config}/session.php (100%) rename {database => apps/backend/database}/.gitignore (100%) rename {database => apps/backend/database}/factories/EventFactory.php (74%) rename {database => apps/backend/database}/factories/UserFactory.php (85%) rename {database => apps/backend/database}/migrations/2025_10_13_213713_create_jobs_table.php (100%) rename {database => apps/backend/database}/migrations/2025_10_13_215246_create_users_table.php (100%) rename {database => apps/backend/database}/migrations/2025_10_14_210658_create_sessions_table.php (100%) rename {database => apps/backend/database}/migrations/2025_10_14_210940_add_remember_token_to_users_table.php (100%) rename {database => apps/backend/database}/migrations/2025_10_27_211752_create_events_table.php (100%) rename {database => apps/backend/database}/migrations/2025_11_09_144248_create_tasks_table.php (90%) rename {database => apps/backend/database}/migrations/2025_11_14_081656_task_user.php (100%) rename {database => apps/backend/database}/migrations/2025_11_28_112359_create_cache_table.php (100%) rename {database => apps/backend/database}/migrations/2026_02_24_133410_add_profile_photo_path_to_users_table.php (100%) rename {database => apps/backend/database}/migrations/2026_03_28_150022_create_notifications_table.php (100%) rename {database => apps/backend/database}/seeders/DatabaseSeeder.php (61%) rename {database => apps/backend/database}/seeders/DevSeeder.php (77%) rename {database => apps/backend/database}/seeders/ProdSeeder.php (76%) rename {docker => apps/backend/docker}/backups/16.sql (100%) rename {docker => apps/backend/docker}/backups/19.sql (100%) rename package-lock.json => apps/backend/package-lock.json (100%) rename package.json => apps/backend/package.json (100%) rename phpunit.xml => apps/backend/phpunit.xml (100%) rename {public => apps/backend/public}/index.php (89%) rename {resources => apps/backend/resources}/js/echo.js (100%) rename {resources => apps/backend/resources}/views/mails/createUserByAdmin.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/deactivateAccount.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/deleteAccount.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/emailChangeConfirmed.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/eventParticipationCancelled.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/notifyEmailChange.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/register.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/requestEmailChange.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/taskDateUpdate.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/taskParticipationCancelled.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/updatePassword.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/updateRole.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/validate.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/volunteerAssignToTask.blade.php (100%) rename {resources => apps/backend/resources}/views/mails/volunteerUnassignToTask.blade.php (100%) create mode 100755 apps/backend/routes/api.php rename {routes => apps/backend/routes}/auth.php (79%) rename {routes => apps/backend/routes}/channels.php (100%) rename {routes => apps/backend/routes}/console.php (100%) rename {routes => apps/backend/routes}/events.php (92%) rename {routes => apps/backend/routes}/notifications.php (88%) rename {routes => apps/backend/routes}/users.php (95%) rename {routes => apps/backend/routes}/web.php (100%) rename {storage => apps/backend/storage}/app/.gitignore (100%) rename {storage => apps/backend/storage}/app/private/.gitignore (100%) rename {storage => apps/backend/storage}/app/public/.gitignore (100%) rename {storage => apps/backend/storage}/framework/.gitignore (100%) rename {storage => apps/backend/storage}/framework/cache/.gitignore (100%) rename {storage => apps/backend/storage}/framework/cache/data/.gitignore (100%) rename {storage => apps/backend/storage}/framework/sessions/.gitignore (100%) rename {storage => apps/backend/storage}/framework/testing/.gitignore (100%) rename {storage => apps/backend/storage}/framework/views/.gitignore (100%) rename {storage => apps/backend/storage}/logs/.gitignore (100%) rename {tests => apps/backend/tests}/Events/Create event.bru (100%) rename {tests => apps/backend/tests}/Events/Delete event.bru (100%) rename {tests => apps/backend/tests}/Events/Get all events.bru (100%) rename {tests => apps/backend/tests}/Events/Get event tasks.bru (100%) rename {tests => apps/backend/tests}/Events/Get event.bru (100%) rename {tests => apps/backend/tests}/Events/Search events.bru (100%) rename {tests => apps/backend/tests}/Events/Update event.bru (100%) rename {tests => apps/backend/tests}/Events/folder.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Assign task to user.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Assign task.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Delete task.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Is user assigned.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Unassign task to user.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Unassign task.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/Update Task.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/create event task.bru (100%) rename {tests => apps/backend/tests}/Events/tasks/folder.bru (100%) rename {tests => apps/backend/tests}/Export/Export ICS.bru (100%) rename {tests => apps/backend/tests}/Export/folder.bru (100%) rename {tests => apps/backend/tests}/Get all roles.bru (100%) rename {tests => apps/backend/tests}/Login.bru (100%) rename {tests => apps/backend/tests}/Logout.bru (100%) rename {tests => apps/backend/tests}/Notifications/Delete user notification.bru (100%) rename {tests => apps/backend/tests}/Notifications/Get user notifications.bru (100%) rename {tests => apps/backend/tests}/Notifications/Read notifications.bru (100%) rename {tests => apps/backend/tests}/Notifications/folder.bru (100%) rename {tests => apps/backend/tests}/Profile photo/Delete profile photo.bru (100%) rename {tests => apps/backend/tests}/Profile photo/Get profile photo.bru (100%) rename {tests => apps/backend/tests}/Profile photo/Update profile photo.bru (100%) rename {tests => apps/backend/tests}/Profile photo/folder.bru (100%) rename {tests => apps/backend/tests}/Users/Create user by admin.bru (100%) rename {tests => apps/backend/tests}/Users/Create user.bru (100%) rename {tests => apps/backend/tests}/Users/Deactivate user.bru (100%) rename {tests => apps/backend/tests}/Users/Delete user by id.bru (100%) rename {tests => apps/backend/tests}/Users/Delete user.bru (100%) rename {tests => apps/backend/tests}/Users/Get User.bru (100%) rename {tests => apps/backend/tests}/Users/Get invalid user.bru (100%) rename {tests => apps/backend/tests}/Users/Get user task by task id.bru (100%) rename {tests => apps/backend/tests}/Users/Get user tasks by id.bru (100%) rename {tests => apps/backend/tests}/Users/Get user tasks.bru (100%) rename {tests => apps/backend/tests}/Users/Modify user role.bru (100%) rename {tests => apps/backend/tests}/Users/Search users.bru (100%) rename {tests => apps/backend/tests}/Users/Update User.bru (100%) rename {tests => apps/backend/tests}/Users/Validate User.bru (100%) rename {tests => apps/backend/tests}/Users/folder.bru (100%) rename {tests => apps/backend/tests}/Users/get all users.bru (100%) rename {tests => apps/backend/tests}/bruno.json (100%) rename {tests => apps/backend/tests}/collection.bru (100%) rename {tests => apps/backend/tests}/environments/dev.bru (100%) rename {tests => apps/backend/tests}/extractCSRF.js (100%) rename {tests => apps/backend/tests}/get CSRF.bru (100%) rename {tests => apps/backend/tests}/hello.bru (100%) rename {tests => apps/backend/tests}/me.bru (100%) delete mode 100755 bootstrap/providers.php delete mode 100755 routes/api.php diff --git a/.editorconfig b/apps/backend/.editorconfig similarity index 100% rename from .editorconfig rename to apps/backend/.editorconfig diff --git a/.gitattributes b/apps/backend/.gitattributes similarity index 100% rename from .gitattributes rename to apps/backend/.gitattributes diff --git a/.gitignore b/apps/backend/.gitignore similarity index 100% rename from .gitignore rename to apps/backend/.gitignore diff --git a/app/Http/Controllers/AuthController.php b/apps/backend/app/Http/Controllers/AuthController.php similarity index 87% rename from app/Http/Controllers/AuthController.php rename to apps/backend/app/Http/Controllers/AuthController.php index a0494fb..aabe22a 100755 --- a/app/Http/Controllers/AuthController.php +++ b/apps/backend/app/Http/Controllers/AuthController.php @@ -1,10 +1,11 @@ */ + /** @use HasFactory<\apps\backend\database\factories\UserFactory> */ use HasFactory, Notifiable; /** diff --git a/app/Notifications/EventDeleted.php b/apps/backend/app/Notifications/EventDeleted.php similarity index 91% rename from app/Notifications/EventDeleted.php rename to apps/backend/app/Notifications/EventDeleted.php index 84e3147..1d9c4a6 100755 --- a/app/Notifications/EventDeleted.php +++ b/apps/backend/app/Notifications/EventDeleted.php @@ -1,13 +1,12 @@ handleCommand(new ArgvInput); diff --git a/bootstrap/app.php b/apps/backend/bootstrap/app.php similarity index 93% rename from bootstrap/app.php rename to apps/backend/bootstrap/app.php index ba9d524..1eaf61b 100755 --- a/bootstrap/app.php +++ b/apps/backend/bootstrap/app.php @@ -6,7 +6,7 @@ use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( - web: __DIR__.'/../routes/web.php', + web: __DIR__ . '/../routes/web.php', api: __DIR__.'/../routes/api.php', commands: __DIR__.'/../routes/console.php', channels: __DIR__.'/../routes/channels.php', diff --git a/bootstrap/cache/.gitignore b/apps/backend/bootstrap/cache/.gitignore similarity index 100% rename from bootstrap/cache/.gitignore rename to apps/backend/bootstrap/cache/.gitignore diff --git a/apps/backend/bootstrap/providers.php b/apps/backend/bootstrap/providers.php new file mode 100755 index 0000000..853ddb4 --- /dev/null +++ b/apps/backend/bootstrap/providers.php @@ -0,0 +1,7 @@ + [ 'users' => [ 'driver' => 'eloquent', - 'model' => env('AUTH_MODEL', App\Models\User::class), + 'model' => env('AUTH_MODEL', \apps\backend\app\Models\User::class), ], // 'users' => [ diff --git a/config/broadcasting.php b/apps/backend/config/broadcasting.php similarity index 100% rename from config/broadcasting.php rename to apps/backend/config/broadcasting.php diff --git a/config/cache.php b/apps/backend/config/cache.php similarity index 100% rename from config/cache.php rename to apps/backend/config/cache.php diff --git a/config/cors.php b/apps/backend/config/cors.php similarity index 100% rename from config/cors.php rename to apps/backend/config/cors.php diff --git a/config/database.php b/apps/backend/config/database.php similarity index 100% rename from config/database.php rename to apps/backend/config/database.php diff --git a/config/filesystems.php b/apps/backend/config/filesystems.php similarity index 100% rename from config/filesystems.php rename to apps/backend/config/filesystems.php diff --git a/config/logging.php b/apps/backend/config/logging.php similarity index 100% rename from config/logging.php rename to apps/backend/config/logging.php diff --git a/config/mail.php b/apps/backend/config/mail.php similarity index 100% rename from config/mail.php rename to apps/backend/config/mail.php diff --git a/config/queue.php b/apps/backend/config/queue.php similarity index 100% rename from config/queue.php rename to apps/backend/config/queue.php diff --git a/config/sanctum.php b/apps/backend/config/sanctum.php similarity index 100% rename from config/sanctum.php rename to apps/backend/config/sanctum.php diff --git a/config/services.php b/apps/backend/config/services.php similarity index 100% rename from config/services.php rename to apps/backend/config/services.php diff --git a/config/session.php b/apps/backend/config/session.php similarity index 100% rename from config/session.php rename to apps/backend/config/session.php diff --git a/database/.gitignore b/apps/backend/database/.gitignore similarity index 100% rename from database/.gitignore rename to apps/backend/database/.gitignore diff --git a/database/factories/EventFactory.php b/apps/backend/database/factories/EventFactory.php similarity index 74% rename from database/factories/EventFactory.php rename to apps/backend/database/factories/EventFactory.php index 22651e6..16da8a1 100755 --- a/database/factories/EventFactory.php +++ b/apps/backend/database/factories/EventFactory.php @@ -1,11 +1,11 @@ + * @extends \Illuminate\Database\Eloquent\Factories\Factory<\apps\backend\app\Models\Event> */ class EventFactory extends Factory { diff --git a/database/factories/UserFactory.php b/apps/backend/database/factories/UserFactory.php similarity index 85% rename from database/factories/UserFactory.php rename to apps/backend/database/factories/UserFactory.php index d2c0196..aacb85c 100755 --- a/database/factories/UserFactory.php +++ b/apps/backend/database/factories/UserFactory.php @@ -1,13 +1,14 @@ + * @extends \Illuminate\Database\Eloquent\Factories\Factory<\apps\backend\app\Models\User> */ class UserFactory extends Factory { diff --git a/database/migrations/2025_10_13_213713_create_jobs_table.php b/apps/backend/database/migrations/2025_10_13_213713_create_jobs_table.php similarity index 100% rename from database/migrations/2025_10_13_213713_create_jobs_table.php rename to apps/backend/database/migrations/2025_10_13_213713_create_jobs_table.php diff --git a/database/migrations/2025_10_13_215246_create_users_table.php b/apps/backend/database/migrations/2025_10_13_215246_create_users_table.php similarity index 100% rename from database/migrations/2025_10_13_215246_create_users_table.php rename to apps/backend/database/migrations/2025_10_13_215246_create_users_table.php diff --git a/database/migrations/2025_10_14_210658_create_sessions_table.php b/apps/backend/database/migrations/2025_10_14_210658_create_sessions_table.php similarity index 100% rename from database/migrations/2025_10_14_210658_create_sessions_table.php rename to apps/backend/database/migrations/2025_10_14_210658_create_sessions_table.php diff --git a/database/migrations/2025_10_14_210940_add_remember_token_to_users_table.php b/apps/backend/database/migrations/2025_10_14_210940_add_remember_token_to_users_table.php similarity index 100% rename from database/migrations/2025_10_14_210940_add_remember_token_to_users_table.php rename to apps/backend/database/migrations/2025_10_14_210940_add_remember_token_to_users_table.php diff --git a/database/migrations/2025_10_27_211752_create_events_table.php b/apps/backend/database/migrations/2025_10_27_211752_create_events_table.php similarity index 100% rename from database/migrations/2025_10_27_211752_create_events_table.php rename to apps/backend/database/migrations/2025_10_27_211752_create_events_table.php diff --git a/database/migrations/2025_11_09_144248_create_tasks_table.php b/apps/backend/database/migrations/2025_11_09_144248_create_tasks_table.php similarity index 90% rename from database/migrations/2025_11_09_144248_create_tasks_table.php rename to apps/backend/database/migrations/2025_11_09_144248_create_tasks_table.php index e6ce615..4f7a922 100755 --- a/database/migrations/2025_11_09_144248_create_tasks_table.php +++ b/apps/backend/database/migrations/2025_11_09_144248_create_tasks_table.php @@ -1,11 +1,12 @@ handleRequest(Request::capture()); diff --git a/resources/js/echo.js b/apps/backend/resources/js/echo.js similarity index 100% rename from resources/js/echo.js rename to apps/backend/resources/js/echo.js diff --git a/resources/views/mails/createUserByAdmin.blade.php b/apps/backend/resources/views/mails/createUserByAdmin.blade.php similarity index 100% rename from resources/views/mails/createUserByAdmin.blade.php rename to apps/backend/resources/views/mails/createUserByAdmin.blade.php diff --git a/resources/views/mails/deactivateAccount.blade.php b/apps/backend/resources/views/mails/deactivateAccount.blade.php similarity index 100% rename from resources/views/mails/deactivateAccount.blade.php rename to apps/backend/resources/views/mails/deactivateAccount.blade.php diff --git a/resources/views/mails/deleteAccount.blade.php b/apps/backend/resources/views/mails/deleteAccount.blade.php similarity index 100% rename from resources/views/mails/deleteAccount.blade.php rename to apps/backend/resources/views/mails/deleteAccount.blade.php diff --git a/resources/views/mails/emailChangeConfirmed.blade.php b/apps/backend/resources/views/mails/emailChangeConfirmed.blade.php similarity index 100% rename from resources/views/mails/emailChangeConfirmed.blade.php rename to apps/backend/resources/views/mails/emailChangeConfirmed.blade.php diff --git a/resources/views/mails/eventParticipationCancelled.blade.php b/apps/backend/resources/views/mails/eventParticipationCancelled.blade.php similarity index 100% rename from resources/views/mails/eventParticipationCancelled.blade.php rename to apps/backend/resources/views/mails/eventParticipationCancelled.blade.php diff --git a/resources/views/mails/notifyEmailChange.blade.php b/apps/backend/resources/views/mails/notifyEmailChange.blade.php similarity index 100% rename from resources/views/mails/notifyEmailChange.blade.php rename to apps/backend/resources/views/mails/notifyEmailChange.blade.php diff --git a/resources/views/mails/register.blade.php b/apps/backend/resources/views/mails/register.blade.php similarity index 100% rename from resources/views/mails/register.blade.php rename to apps/backend/resources/views/mails/register.blade.php diff --git a/resources/views/mails/requestEmailChange.blade.php b/apps/backend/resources/views/mails/requestEmailChange.blade.php similarity index 100% rename from resources/views/mails/requestEmailChange.blade.php rename to apps/backend/resources/views/mails/requestEmailChange.blade.php diff --git a/resources/views/mails/taskDateUpdate.blade.php b/apps/backend/resources/views/mails/taskDateUpdate.blade.php similarity index 100% rename from resources/views/mails/taskDateUpdate.blade.php rename to apps/backend/resources/views/mails/taskDateUpdate.blade.php diff --git a/resources/views/mails/taskParticipationCancelled.blade.php b/apps/backend/resources/views/mails/taskParticipationCancelled.blade.php similarity index 100% rename from resources/views/mails/taskParticipationCancelled.blade.php rename to apps/backend/resources/views/mails/taskParticipationCancelled.blade.php diff --git a/resources/views/mails/updatePassword.blade.php b/apps/backend/resources/views/mails/updatePassword.blade.php similarity index 100% rename from resources/views/mails/updatePassword.blade.php rename to apps/backend/resources/views/mails/updatePassword.blade.php diff --git a/resources/views/mails/updateRole.blade.php b/apps/backend/resources/views/mails/updateRole.blade.php similarity index 100% rename from resources/views/mails/updateRole.blade.php rename to apps/backend/resources/views/mails/updateRole.blade.php diff --git a/resources/views/mails/validate.blade.php b/apps/backend/resources/views/mails/validate.blade.php similarity index 100% rename from resources/views/mails/validate.blade.php rename to apps/backend/resources/views/mails/validate.blade.php diff --git a/resources/views/mails/volunteerAssignToTask.blade.php b/apps/backend/resources/views/mails/volunteerAssignToTask.blade.php similarity index 100% rename from resources/views/mails/volunteerAssignToTask.blade.php rename to apps/backend/resources/views/mails/volunteerAssignToTask.blade.php diff --git a/resources/views/mails/volunteerUnassignToTask.blade.php b/apps/backend/resources/views/mails/volunteerUnassignToTask.blade.php similarity index 100% rename from resources/views/mails/volunteerUnassignToTask.blade.php rename to apps/backend/resources/views/mails/volunteerUnassignToTask.blade.php diff --git a/apps/backend/routes/api.php b/apps/backend/routes/api.php new file mode 100755 index 0000000..c1e8773 --- /dev/null +++ b/apps/backend/routes/api.php @@ -0,0 +1,22 @@ +group(function () { + Route::post('/profile-photo', [\apps\backend\app\Http\Controllers\UserController::class, 'updatePhoto']); + Route::delete('/profile-photo', [\apps\backend\app\Http\Controllers\UserController::class, 'destroy']); + Route::get('/profile-photo', [\apps\backend\app\Http\Controllers\UserController::class, 'show']); +}); + + +Route::get('/export/ics/{userId}', [ExportController::class, 'exportIcs']); +Route::get("/hello", function (Request $request) { + return "Hello"; +}); + +Route::get("/roles", function(Request $request) { + return \apps\backend\app\Services\GetRole::GetAllRoles(); +}); diff --git a/routes/auth.php b/apps/backend/routes/auth.php similarity index 79% rename from routes/auth.php rename to apps/backend/routes/auth.php index b15de8d..ffc2505 100755 --- a/routes/auth.php +++ b/apps/backend/routes/auth.php @@ -1,7 +1,7 @@ post('/events/create', [EventsController::class, "create"]); diff --git a/routes/notifications.php b/apps/backend/routes/notifications.php similarity index 88% rename from routes/notifications.php rename to apps/backend/routes/notifications.php index f72ce3c..4071332 100755 --- a/routes/notifications.php +++ b/apps/backend/routes/notifications.php @@ -1,6 +1,6 @@ get('/users/notifications', [NotificationsController::class, "getNotifications"]); diff --git a/routes/users.php b/apps/backend/routes/users.php similarity index 95% rename from routes/users.php rename to apps/backend/routes/users.php index 97a97a0..50884c0 100755 --- a/routes/users.php +++ b/apps/backend/routes/users.php @@ -1,7 +1,7 @@ group(function () { - Route::post('/profile-photo', [\App\Http\Controllers\UserController::class, 'updatePhoto']); - Route::delete('/profile-photo', [\App\Http\Controllers\UserController::class, 'destroy']); - Route::get('/profile-photo', [\App\Http\Controllers\UserController::class, 'show']); -}); - - -Route::get('/export/ics/{userId}', [ExportController::class, 'exportIcs']); -Route::get("/hello", function (Request $request) { - return "Hello"; -}); - -Route::get("/roles", function(Request $request) { - return \App\Services\GetRole::GetAllRoles(); -});