Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
cs
blog/tag models and migrations and some relationship stuff
domain structure for modeks
  • Loading branch information
SethSharp committed Jan 24, 2024
1 parent 18f1d5b commit 2a39a35
Show file tree
Hide file tree
Showing 37 changed files with 274 additions and 112 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.27","version":"3.48.0:v3.48.0#a92472c6fb66349de25211f31c77eceae3df024e","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces_position":true,"class_definition":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"new_with_braces":true,"ordered_imports":{"sort_algorithm":"length"},"concat_space":{"spacing":"one"},"single_line_comment_spacing":true,"no_unused_imports":true},"hashes":{"app\\Console\\Kernel.php":"e686f350670077ede3c562f0579a82c8","app\\Exceptions\\Handler.php":"b894d6e3f8bfec41866b5f89d5bf8da9","app\\Http\\Controllers\\Controller.php":"1e6be3349288106e17305da555a33e0e","app\\Http\\Controllers\\ProfileController.php":"e4e47985247996ad50ddce2a1ce6a3f9","app\\Http\\Controllers\\Views\\ShowCapabiltiesController.php":"bfc66020efd9fc0287c2141b0a017ee9","app\\Http\\Controllers\\Views\\ShowExperienceController.php":"d7cd8de8fe19851722c4b5cab6caa426","app\\Http\\Controllers\\Views\\ShowHomeController.php":"f97fd9f8bfcb7994f0d3ab0a9dce341e","app\\Http\\Controllers\\Views\\ShowProjectsController.php":"d6311a78957a584e58dbaa845ecdb19d","app\\Http\\Kernel.php":"3e84604d5786d8849a4c3899fb323d89","app\\Http\\Middleware\\Authenticate.php":"1a28ab8a480d33b5e262412c084e77b2","app\\Http\\Middleware\\EncryptCookies.php":"aa3be31badc36cd9d7a5ea08eef245e7","app\\Http\\Middleware\\PreventRequestsDuringMaintenance.php":"9bf727a4eeaabad8fde5110106356d60","app\\Http\\Middleware\\RedirectIfAuthenticated.php":"f1d5e9a30ceeaa182ab900db7179f668","app\\Http\\Middleware\\TrimStrings.php":"016f82bc302a0b8801eeb48edea87cdf","app\\Http\\Middleware\\TrustHosts.php":"c4e3014f785c6c1752713695bb8fa486","app\\Http\\Middleware\\TrustProxies.php":"941e0ecf2205f43dd523a8a6d827543b","app\\Http\\Middleware\\VerifyCsrfToken.php":"f940a35a715b792ecc6c36e1da1adbc1","app\\Http\\Requests\\Auth\\LoginRequest.php":"0749409424b39dbf0378d760866e1072","app\\Http\\Requests\\ProfileUpdateRequest.php":"38c8aec8584d6b00c082eefe2ad17fbb","app\\Mail\\ContactMail.php":"ea14e0c9a216e8ca15652a9a1f044588","app\\Models\\User.php":"af369fbceba130d9b961fe70b7aec138","app\\Providers\\AppServiceProvider.php":"2472f6584237b1d5f7e91e450bebefa5","app\\Providers\\AuthServiceProvider.php":"4fb76d597913194904cf889a91c4c3ab","app\\Providers\\BroadcastServiceProvider.php":"632965db433f56753df2f9309b6db4e5","app\\Providers\\EventServiceProvider.php":"e3291a848d3434eeb8181e7ae94d3876","app\\Providers\\RouteServiceProvider.php":"42301a59475a04b66f8f537e8e25e9e0","app\\View\\Components\\AppLayout.php":"22cefd3a8fc1700b29d51eca0a11d98e","app\\View\\Components\\Card.php":"a38bc71d8481f8a7b326fdb74a2322f6","app\\View\\Components\\GuestLayout.php":"e013cd9e079b0c8cc5f6d955b2804d11","app\\View\\Components\\NavBar.php":"d87bc66f89a48fbe798f0f3f28f44343","app\\View\\Components\\qualification.php":"f674991553469232a3457458f498fb1d","config\\app.php":"5a85bdf0db805150a64cab7f6447b1a4","config\\auth.php":"7729674f5efcbbb7a2ada057581d44ae","config\\broadcasting.php":"59c10166bc3fb5f43e127cef643ecbcc","config\\cache.php":"e2ec5b2af8247c759bd77ec6382c9c84","config\\cors.php":"7e46f4152490ce5bf22fe42d2b57a63a","config\\database.php":"7e1fe950dc6e5ae47d7ff3ce5458aa64","config\\filesystems.php":"4fd376ad6cba1ff7a09c0bd562d0bb21","config\\hashing.php":"7f0c219eabd21347095bc9263dbfd882","config\\logging.php":"21d65ad2eb2912edbe59b79e71e8704c","config\\mail.php":"dbb9174e18e35bdeb5ca8b70e94db8c4","config\\queue.php":"e5f7535f46f1db6a22a4332e532fbb51","config\\sanctum.php":"cbb6b4208f604062f892f7cbd1981d70","config\\services.php":"1146126dd89fa5a45a7b8fe980859d20","config\\session.php":"3a7383033e5590fed7fbab85f2ce924e","config\\view.php":"24e00ccca17634d028fbbfdafd9e7461","database\\factories\\UserFactory.php":"d49d2f9bf5fffdffc609f2c5c519b14f","database\\migrations\\2014_10_12_000000_create_users_table.php":"ed868b28e7f97f1ea0f1fabd34b1ac1e","database\\migrations\\2014_10_12_100000_create_password_resets_table.php":"81fa2358002557f3d58f46442e76514a","database\\migrations\\2019_08_19_000000_create_failed_jobs_table.php":"dc34476dceb1f400606e7fc10f3b7d85","database\\migrations\\2019_12_14_000001_create_personal_access_tokens_table.php":"9379d41cd8cc54d759acf30688b1a9f1","database\\seeders\\DatabaseSeeder.php":"918350ee3820bc7a1228aad259b2c1d4","routes\\api.php":"d494d8545ef2cbea526a5013d67eb79b","routes\\channels.php":"5edf0b9faf77f23d5bb0474740fe651d","routes\\console.php":"62bfb59371c073b4ec966528fdd9c3f9","routes\\web.php":"e0eb2152283626d58c38a0c8b1d117a8","tests\\CreatesApplication.php":"3f1fa41a495d11fc1f823ad3d57047e5","tests\\Feature\\Auth\\AuthenticationTest.php":"62ba13014c87ebef9ddd891046651c49","tests\\Feature\\Auth\\EmailVerificationTest.php":"e367eb9de316aa1f1d19bf59ce13ce04","tests\\Feature\\Auth\\PasswordConfirmationTest.php":"ad7c533786d75aa6f097abce14dabd37","tests\\Feature\\Auth\\PasswordResetTest.php":"a3b8ee2cbcdababb53e5f6dbbc2dae54","tests\\Feature\\Auth\\PasswordUpdateTest.php":"2178cedd6920f02c03bd42cb647882d3","tests\\Feature\\Auth\\RegistrationTest.php":"e46d26171cf7f04a6b6ed7496280648f","tests\\Feature\\ExampleTest.php":"253f8d736dc25e3b118aa28159847162","tests\\Feature\\ProfileTest.php":"3722cbcbb2669a7419672b4d19d233ed","tests\\TestCase.php":"93519c98470fc8240aed892b40c5a9fc","tests\\Unit\\ExampleTest.php":"c2e616f3cdfc418af4f0745d84846902"}}
{"php":"8.2.15","version":"3.48.0:v3.48.0#a92472c6fb66349de25211f31c77eceae3df024e","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces_position":true,"class_definition":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"attribute_placement":"ignore","on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"new_with_braces":true,"ordered_imports":{"sort_algorithm":"length"},"concat_space":{"spacing":"one"},"single_line_comment_spacing":true,"no_unused_imports":true},"hashes":{"app\/Mail\/ContactMail.php":"ea14e0c9a216e8ca15652a9a1f044588","app\/Providers\/AppServiceProvider.php":"2472f6584237b1d5f7e91e450bebefa5","app\/Providers\/AuthServiceProvider.php":"4fb76d597913194904cf889a91c4c3ab","app\/Providers\/RouteServiceProvider.php":"42301a59475a04b66f8f537e8e25e9e0","app\/Providers\/BroadcastServiceProvider.php":"632965db433f56753df2f9309b6db4e5","app\/Providers\/EventServiceProvider.php":"e3291a848d3434eeb8181e7ae94d3876","app\/Exceptions\/Handler.php":"b894d6e3f8bfec41866b5f89d5bf8da9","app\/Http\/Middleware\/VerifyCsrfToken.php":"f940a35a715b792ecc6c36e1da1adbc1","app\/Http\/Middleware\/RedirectIfAuthenticated.php":"f1d5e9a30ceeaa182ab900db7179f668","app\/Http\/Middleware\/TrimStrings.php":"016f82bc302a0b8801eeb48edea87cdf","app\/Http\/Middleware\/Authenticate.php":"1a28ab8a480d33b5e262412c084e77b2","app\/Http\/Middleware\/TrustProxies.php":"941e0ecf2205f43dd523a8a6d827543b","app\/Http\/Middleware\/HandleInertiaRequests.php":"e481a16c3aa55aa2e306d9c3d7e97782","app\/Http\/Middleware\/PreventRequestsDuringMaintenance.php":"9bf727a4eeaabad8fde5110106356d60","app\/Http\/Middleware\/EncryptCookies.php":"aa3be31badc36cd9d7a5ea08eef245e7","app\/Http\/Middleware\/TrustHosts.php":"c4e3014f785c6c1752713695bb8fa486","app\/Http\/Requests\/Auth\/LoginRequest.php":"0749409424b39dbf0378d760866e1072","app\/Http\/Requests\/ProfileUpdateRequest.php":"310e2c009f55d5fe867e983f9625f9d2","app\/Http\/Controllers\/Controller.php":"1e6be3349288106e17305da555a33e0e","app\/Http\/Controllers\/Auth\/NewPasswordController.php":"67a8115334cf8b9e8314132a57637385","app\/Http\/Controllers\/Auth\/EmailVerificationPromptController.php":"2c6ed63ba8f07be2bc24d4fd816ca1b3","app\/Http\/Controllers\/Auth\/VerifyEmailController.php":"4d4eab382bc069b0b10fa5a9cf4d9c90","app\/Http\/Controllers\/Auth\/PasswordResetLinkController.php":"0bc7fcecc1de50b524d54fb133d73ec1","app\/Http\/Controllers\/Auth\/PasswordController.php":"b02aa8514d5669b865722eb84f5c83d9","app\/Http\/Controllers\/Auth\/EmailVerificationNotificationController.php":"b31bca11ee66b42f24bd56559fc17248","app\/Http\/Controllers\/Auth\/AuthenticatedSessionController.php":"d06910eb73e96025fb4f509317bb8aec","app\/Http\/Controllers\/Auth\/RegisteredUserController.php":"70e0dd5bcf7a27dce780c83d6422194f","app\/Http\/Controllers\/Auth\/ConfirmablePasswordController.php":"11b4cb0c52a720e8773ad9defb313ed7","app\/Http\/Controllers\/DashboardController.php":"9b8dd9ad9a3ee42e1125a79654cb6b39","app\/Http\/Controllers\/ProfileController.php":"a98964ac78e830d0891a265f2b76682d","app\/Http\/Controllers\/Views\/ShowExperienceController.php":"d7cd8de8fe19851722c4b5cab6caa426","app\/Http\/Controllers\/Views\/ShowHomeController.php":"f97fd9f8bfcb7994f0d3ab0a9dce341e","app\/Http\/Controllers\/Views\/ShowBlogsController.php":"ee4289964679b08fa9afd63ff3fa5119","app\/Http\/Controllers\/Views\/ShowProjectsController.php":"d6311a78957a584e58dbaa845ecdb19d","app\/Http\/Controllers\/Views\/ShowCapabiltiesController.php":"bfc66020efd9fc0287c2141b0a017ee9","app\/Http\/Kernel.php":"520b392be2801ed5c51e9762bd61973b","app\/View\/Components\/Card.php":"a38bc71d8481f8a7b326fdb74a2322f6","app\/View\/Components\/NavBar.php":"d87bc66f89a48fbe798f0f3f28f44343","app\/View\/Components\/GuestLayout.php":"e013cd9e079b0c8cc5f6d955b2804d11","app\/View\/Components\/qualification.php":"f674991553469232a3457458f498fb1d","app\/View\/Components\/AppLayout.php":"22cefd3a8fc1700b29d51eca0a11d98e","app\/Domain\/Blog\/Models\/Blog.php":"4f21c53daaa2d183a3e48c47b3ffa619","app\/Domain\/Iam\/Models\/User.php":"fb4b0d5a5a22b1a0c55ef84bba7a4ded","app\/Console\/Kernel.php":"e686f350670077ede3c562f0579a82c8","config\/sanctum.php":"cbb6b4208f604062f892f7cbd1981d70","config\/hashing.php":"7f0c219eabd21347095bc9263dbfd882","config\/auth.php":"80624cf5c489707b449381865efb39ca","config\/app.php":"5a85bdf0db805150a64cab7f6447b1a4","config\/mail.php":"dbb9174e18e35bdeb5ca8b70e94db8c4","config\/services.php":"1146126dd89fa5a45a7b8fe980859d20","config\/database.php":"7e1fe950dc6e5ae47d7ff3ce5458aa64","config\/cache.php":"e2ec5b2af8247c759bd77ec6382c9c84","config\/session.php":"3a7383033e5590fed7fbab85f2ce924e","config\/queue.php":"e5f7535f46f1db6a22a4332e532fbb51","config\/broadcasting.php":"59c10166bc3fb5f43e127cef643ecbcc","config\/view.php":"24e00ccca17634d028fbbfdafd9e7461","config\/cors.php":"7e46f4152490ce5bf22fe42d2b57a63a","config\/logging.php":"21d65ad2eb2912edbe59b79e71e8704c","config\/filesystems.php":"4fd376ad6cba1ff7a09c0bd562d0bb21","database\/migrations\/2019_12_14_000001_create_personal_access_tokens_table.php":"a83a47e5b8d4b6360e37c0534215edc8","database\/migrations\/2014_10_12_100000_create_password_reset_tokens_table.php":"f2dedb471ba17e57c8243d8292a96d6f","database\/migrations\/2014_10_12_000000_create_users_table.php":"b97f5e0bdb39849d8299b8138e1c527c","database\/migrations\/2019_08_19_000000_create_failed_jobs_table.php":"991da6508ab174bd52c3d4e861831e1c","database\/seeders\/DatabaseSeeder.php":"640d4c82fc0ba943b4182deac29ada32","database\/factories\/Domain\/Iam\/Models\/UserFactory.php":"16a15542cca7a27a57cfdd55a11ce7a5","routes\/auth.php":"7d0c8fa60556a67d84215705777a4074","routes\/channels.php":"5edf0b9faf77f23d5bb0474740fe651d","routes\/console.php":"62bfb59371c073b4ec966528fdd9c3f9","routes\/blog.php":"d494653b92b1745ffbd12581ff2dfe6a","routes\/web.php":"a0a901a6992fd80045ae87b3e1a3c05b","routes\/api.php":"d494d8545ef2cbea526a5013d67eb79b","tests\/Unit\/ExampleTest.php":"c2e616f3cdfc418af4f0745d84846902","tests\/CreatesApplication.php":"3f1fa41a495d11fc1f823ad3d57047e5","tests\/Feature\/ProfileTest.php":"ff587451810b0dbad53ca8bcc964380b","tests\/Feature\/ExampleTest.php":"253f8d736dc25e3b118aa28159847162","tests\/Feature\/Auth\/PasswordConfirmationTest.php":"2260cbe2f322b200dc8b71851d9b9a81","tests\/Feature\/Auth\/EmailVerificationTest.php":"420d397bc90e3c0bba3ddc12db7bd32d","tests\/Feature\/Auth\/PasswordUpdateTest.php":"4267f5c5f539e199982476f4f928b80c","tests\/Feature\/Auth\/RegistrationTest.php":"e46d26171cf7f04a6b6ed7496280648f","tests\/Feature\/Auth\/AuthenticationTest.php":"6768f868f3ec11fac90c6064b82b42c3","tests\/Feature\/Auth\/PasswordResetTest.php":"3188f4f77c9ad0f106a05c98a92a477a","tests\/TestCase.php":"93519c98470fc8240aed892b40c5a9fc"}}
25 changes: 25 additions & 0 deletions app/Domain/Blog/Models/Blog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace App\Domain\Blog\Models;

use App\Domain\Iam\Models\User;
use App\Models\Tag;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;

class Blog extends Model
{
use HasFactory;

public function author(): HasOne
{
return $this->hasOne(User::class, 'author_id');
}

public function tags(): HasMany
{
return $this->hasMany(Tag::class);
}
}
6 changes: 4 additions & 2 deletions app/Models/User.php → app/Domain/Iam/Models/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Models;
namespace App\Domain\Iam\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Laravel\Sanctum\HasApiTokens;
Expand All @@ -10,7 +10,9 @@

class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
use HasApiTokens;
use HasFactory;
use Notifiable;

/**
* The attributes that are mass assignable.
Expand Down
12 changes: 6 additions & 6 deletions app/Http/Controllers/Auth/AuthenticatedSessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Http\Requests\Auth\LoginRequest;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use Inertia\Response;
use App\Providers\RouteServiceProvider;
use App\Http\Requests\Auth\LoginRequest;

class AuthenticatedSessionController extends Controller
{
Expand Down
10 changes: 5 additions & 5 deletions app/Http/Controllers/Auth/ConfirmablePasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\RedirectResponse;
use App\Providers\RouteServiceProvider;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;

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

namespace App\Http\Controllers\Auth;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use App\Providers\RouteServiceProvider;

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

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use App\Providers\RouteServiceProvider;

class EmailVerificationPromptController extends Controller
{
Expand Down
14 changes: 7 additions & 7 deletions app/Http/Controllers/Auth/NewPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Http\RedirectResponse;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Validation\Rules;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Str;
use Illuminate\Validation\Rules;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;

class NewPasswordController extends Controller
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/PasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Http\RedirectResponse;
use Illuminate\Validation\Rules\Password;

class PasswordController extends Controller
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Auth/PasswordResetLinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;
use Inertia\Response;

class PasswordResetLinkController extends Controller
{
Expand Down
18 changes: 9 additions & 9 deletions app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\RedirectResponse;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\Request;
use App\Domain\Iam\Models\User;
use Illuminate\Validation\Rules;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\Rules;
use Inertia\Inertia;
use Inertia\Response;
use Illuminate\Http\RedirectResponse;
use Illuminate\Auth\Events\Registered;
use App\Providers\RouteServiceProvider;

class RegisteredUserController extends Controller
{
Expand All @@ -33,7 +33,7 @@ public function store(Request $request): RedirectResponse
{
$request->validate([
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:'.User::class,
'email' => 'required|string|email|max:255|unique:' . User::class,
'password' => ['required', 'confirmed', Rules\Password::defaults()],
]);

Expand Down
Loading

0 comments on commit 2a39a35

Please sign in to comment.