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(); -});