Skip to content

Commit

Permalink
#405 - Laravel 11 upgrade (#413)
Browse files Browse the repository at this point in the history
* #405 - update to Laravel 11

* #405 - spatie/laravel-slack-slash-command updated

* #405 - rebase

* - some updates

* #405 - rebase

* #405 - restructuring

* #405 - Laravel 11 slimming

* #405 - csf

* #405 - rebase

* #405 - timezone?

* #405 - more files moved

* #405 - readme update

* #405 - docker-compose to docker compose

* #405 - removing rackbeat/laravel-ui-avatars

* #405 - composer bump

* - add trust proxies middleware

* #405 - adding Sanctum middleware

* #405 - deprecated annotations

* #405 - downgrading phpoffice/phpword

* #405 - transferring exception handling

* #405 - źźź

* #405 - updating permission namespaces

* #405 - csf

* #405 - inertia tweaks

---------

Co-authored-by: Kamil <[email protected]>
Co-authored-by: Marcin Tracz <[email protected]>
  • Loading branch information
3 people authored Apr 3, 2024
1 parent 1d7812f commit 75ecb04
Show file tree
Hide file tree
Showing 325 changed files with 2,462 additions and 3,325 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Toby\Domain\Actions;
namespace Toby\Actions;

use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
use Toby\Models\User;
use Toby\Models\YearPeriod;

class CreateUserAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Toby\Domain\Actions;
namespace Toby\Actions;

use Toby\Domain\PolishHolidaysRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
use Toby\Models\User;
use Toby\Models\YearPeriod;

class CreateYearPeriodAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\Slack;
namespace Toby\Actions\Slack;

use Illuminate\Support\Carbon;
use Toby\Domain\DailySummaryRetriever;
use Toby\Eloquent\Models\DailySummary;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Models\DailySummary;
use Toby\Models\User;
use Toby\Models\VacationRequest;

class GenerateDailySummaryAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\Slack;
namespace Toby\Actions\Slack;

use Illuminate\Support\Facades\Http;
use Toby\Eloquent\Models\DailySummary;
use Toby\Models\DailySummary;

class SendDailySummaryToSlackAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\Slack;
namespace Toby\Actions\Slack;

use Toby\Domain\DailySummaryRetriever;
use Toby\Domain\VacationRequestStatesRetriever;
use Toby\Eloquent\Models\DailySummary;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Models\DailySummary;
use Toby\Models\User;
use Toby\Models\VacationRequest;

class UpdateDailySummaryAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\Slack;
namespace Toby\Actions\Slack;

use Illuminate\Support\Facades\Http;
use Toby\Eloquent\Models\DailySummary;
use Toby\Models\DailySummary;

class UpdateDailySummaryMessageAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Toby\Domain\Actions;
namespace Toby\Actions;

use Toby\Eloquent\Models\User;
use Toby\Models\User;

class SyncUserPermissionsWithRoleAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Toby\Domain\Actions;
namespace Toby\Actions;

use Toby\Eloquent\Models\User;
use Toby\Models\User;

class UpdateUserAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Toby\Domain\Actions;
namespace Toby\Actions;

use Toby\Eloquent\Models\User;
use Toby\Models\User;

class UpdateUserPermissionsAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Toby\Domain\VacationRequestStateManager;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Models\User;
use Toby\Models\VacationRequest;

class AcceptAsAdministrativeAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Models\User;
use Toby\Models\VacationRequest;

class AcceptAsTechnicalAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Spatie\Permission\Models\Permission;
use Toby\Domain\Events\VacationRequestChanged;
use Toby\Domain\Notifications\VacationRequestStatusChangedNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Infrastructure\Jobs\SendVacationRequestDaysToGoogleCalendar;
use Toby\Events\VacationRequestChanged;
use Toby\Jobs\SendVacationRequestDaysToGoogleCalendar;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestStatusChangedNotification;

class ApproveAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Spatie\Permission\Models\Permission;
use Toby\Domain\Events\VacationRequestChanged;
use Toby\Domain\Notifications\VacationRequestStatusChangedNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Infrastructure\Jobs\ClearVacationRequestDaysInGoogleCalendar;
use Toby\Events\VacationRequestChanged;
use Toby\Jobs\ClearVacationRequestDaysInGoogleCalendar;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestStatusChangedNotification;

class CancelAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Illuminate\Validation\ValidationException;
use Toby\Domain\Notifications\VacationRequestCreatedNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Domain\Validation\VacationRequestValidator;
use Toby\Domain\WorkDaysCalculator;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestCreatedNotification;
use Toby\Validation\VacationRequestValidator;

class CreateAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Spatie\Permission\Models\Permission;
use Toby\Domain\Events\VacationRequestChanged;
use Toby\Domain\Notifications\VacationRequestStatusChangedNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Events\VacationRequestChanged;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestStatusChangedNotification;

class RejectAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Spatie\Permission\Models\Permission;
use Toby\Domain\Events\VacationRequestChanged;
use Toby\Domain\Notifications\VacationRequestWaitsForApprovalNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Events\VacationRequestChanged;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestWaitsForApprovalNotification;

class WaitForAdminApprovalAction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace Toby\Domain\Actions\VacationRequest;
namespace Toby\Actions\VacationRequest;

use Spatie\Permission\Models\Permission;
use Toby\Domain\Events\VacationRequestChanged;
use Toby\Domain\Notifications\VacationRequestWaitsForApprovalNotification;
use Toby\Domain\VacationRequestStateManager;
use Toby\Domain\VacationTypeConfigRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Events\VacationRequestChanged;
use Toby\Models\User;
use Toby\Models\VacationRequest;
use Toby\Notifications\VacationRequestWaitsForApprovalNotification;

class WaitForTechApprovalAction
{
Expand Down
61 changes: 0 additions & 61 deletions app/Architecture/ExceptionHandler.php

This file was deleted.

36 changes: 0 additions & 36 deletions app/Architecture/Providers/RouteServiceProvider.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Toby\Infrastructure\Console\Commands;
namespace Toby\Console\Commands;

use Illuminate\Console\Command;
use Toby\Eloquent\Models\BenefitsReport;
use Toby\Models\BenefitsReport;

class CreateFirstBenefitsReport extends Command
{
Expand Down
Loading

0 comments on commit 75ecb04

Please sign in to comment.