Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/Application/Http/Controllers/Backend/User/Authentication/NewPasswordController.php
#	app/Application/Http/Controllers/Backend/User/Authentication/PasswordController.php
#	app/Application/Http/Controllers/Backend/User/Authentication/RegisteredUserController.php
  • Loading branch information
AlexisVS committed Aug 23, 2023
2 parents 4d010ec + c918787 commit 2a9ba43
Show file tree
Hide file tree
Showing 29 changed files with 50 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Application\Http\Controllers;
namespace App\Application\Http\Controllers\Application;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
declare(strict_types=1);


namespace App\Domain\Account\Controllers;
namespace App\Application\Http\Controllers\Backend\Account;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use Inertia\Inertia;
use Inertia\Response;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Http\Requests\User\Authentication\LoginRequest;
use App\Application\Providers\RouteServiceProvider;
use App\Domain\User\Authentication\Requests\LoginRequest;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App\Domain\User\Authentication\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Authentication;

use App\Application\Http\Controllers\Controller;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\Verified;
use Illuminate\Foundation\Auth\EmailVerificationRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace App\Domain\User\Profile\Controllers;
namespace App\Application\Http\Controllers\Backend\User\Profile;

use App\Application\Http\Controllers\Controller;
use App\Domain\User\Profile\Requests\ProfileUpdateRequest;
use App\Application\Http\Controllers\Application\Controller;
use App\Application\Http\Requests\User\Profile\ProfileUpdateRequest;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand Down
1 change: 1 addition & 0 deletions app/Application/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace App\Application\Http\Controllers;

use App\Application\Http\Controllers\Application\Controller;
use Inertia\Inertia;
use Inertia\Response;

Expand Down
1 change: 1 addition & 0 deletions app/Application/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace App\Application\Http\Controllers;

use App\Application\Http\Controllers\Application\Controller;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use Inertia\Response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Requests;
namespace App\Application\Http\Requests\User\Authentication;

use Illuminate\Auth\Events\Lockout;
use Illuminate\Foundation\Http\FormRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Profile\Requests;
namespace App\Application\Http\Requests\User\Profile;

use App\Domain\User\User;
use Illuminate\Foundation\Http\FormRequest;
Expand Down
2 changes: 2 additions & 0 deletions app/Domain/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protected static function newFactory(): Factory
'name',
'email',
'password',
'uuid'
];

/**
Expand All @@ -42,6 +43,7 @@ protected static function newFactory(): Factory
protected $hidden = [
'password',
'remember_token',
'uuid'
];

/**
Expand Down
9 changes: 5 additions & 4 deletions database/factories/Domain/Account/AccountFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use App\Application\Infrastructure\Database\Factories\Traits\SupportProjections;
use App\Domain\Account\Account;
use Illuminate\Database\Eloquent\Factories\Factory;

class AccountFactory extends \Illuminate\Database\Eloquent\Factories\Factory
class AccountFactory extends Factory
{
use SupportProjections;

Expand All @@ -17,9 +18,9 @@ class AccountFactory extends \Illuminate\Database\Eloquent\Factories\Factory
public function definition(): array
{
return [
'uuid' => $this->faker->uuid(),
'name' => $this->faker->name(),
'balance' => $this->faker->randomFloat(2, 0, 1000000),
'uuid' => fake()->uuid(),
'name' => fake()->name(),
'balance' => fake()->randomFloat(2, 0, 1000000),
];
}
}
2 changes: 1 addition & 1 deletion database/factories/Domain/User/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'uuid' => $this->faker->uuid(),
'uuid' => fake()->uuid(),
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
Expand Down
4 changes: 0 additions & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
<directory suffix="Test.php">./app/Domain/**/Tests/Unit</directory>
<directory suffix="Test.php">./app/Domain/**/**/Tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./app/Domain/**/Tests/Feature</directory>
<directory suffix="Test.php">./app/Domain/**/**/Tests/Feature</directory>
</testsuite>
</testsuites>
<source>
Expand Down
18 changes: 9 additions & 9 deletions routes/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App\Infrastructure\routes;

use App\Domain\User\Authentication\Controllers\AuthenticatedSessionController;
use App\Domain\User\Authentication\Controllers\ConfirmablePasswordController;
use App\Domain\User\Authentication\Controllers\EmailVerificationNotificationController;
use App\Domain\User\Authentication\Controllers\EmailVerificationPromptController;
use App\Domain\User\Authentication\Controllers\NewPasswordController;
use App\Domain\User\Authentication\Controllers\PasswordController;
use App\Domain\User\Authentication\Controllers\PasswordResetLinkController;
use App\Domain\User\Authentication\Controllers\RegisteredUserController;
use App\Domain\User\Authentication\Controllers\VerifyEmailController;
use App\Application\Http\Controllers\Backend\User\Authentication\AuthenticatedSessionController;
use App\Application\Http\Controllers\Backend\User\Authentication\ConfirmablePasswordController;
use App\Application\Http\Controllers\Backend\User\Authentication\EmailVerificationNotificationController;
use App\Application\Http\Controllers\Backend\User\Authentication\EmailVerificationPromptController;
use App\Application\Http\Controllers\Backend\User\Authentication\NewPasswordController;
use App\Application\Http\Controllers\Backend\User\Authentication\PasswordController;
use App\Application\Http\Controllers\Backend\User\Authentication\PasswordResetLinkController;
use App\Application\Http\Controllers\Backend\User\Authentication\RegisteredUserController;
use App\Application\Http\Controllers\Backend\User\Authentication\VerifyEmailController;
use Illuminate\Support\Facades\Route;

Route::middleware('guest')->group(function () {
Expand Down
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Infrastructure\routes;

use App\Application\Http\Controllers\Backend\Account\AccountController;
use App\Application\Http\Controllers\Backend\User\Profile\ProfileController;
use App\Application\Http\Controllers\DashboardController;
use App\Application\Http\Controllers\HomeController;
use App\Domain\Account\Controllers\AccountController;
use App\Domain\User\Profile\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Application\Providers\RouteServiceProvider;
use App\Domain\User\User;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Application\Providers\RouteServiceProvider;
use App\Domain\User\User;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Domain\User\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Domain\User\User;
use Illuminate\Auth\Notifications\ResetPassword;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Domain\User\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

namespace App\Domain\User\Authentication\Tests\Feature;
namespace Domain\User\Authentication;

use App\Application\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Ramsey\Uuid\Uuid;
use Tests\TestCase;

class RegistrationTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domain\User\Profile\Tests\Feature;
namespace Domain\User\Profile;

use App\Domain\User\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down

0 comments on commit 2a9ba43

Please sign in to comment.