From e19d535edf6f390169e004f1c0767439257032f4 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 24 Sep 2022 20:53:57 +0800 Subject: [PATCH] Refactor laravel architecture. Move App folder to infrastructure folder. 1. moved laravel app folder content to /src/Common/Infrastructure/Laravel 2. moved Console/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Console.php 3. moved Http/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Http.php 4. moved Http/Controllers/Controller.php to /src/Common/Infrastructure/Laravel/Controller.php 5. fix file paths in boorstrap/app.php 6. fix file paths for application service providers in config/app.php 7. fix file paths for middleware in config/sanctum.php 8. change app to src in composer.json --- app/Models/User.php | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 app/Models/User.php diff --git a/app/Models/User.php b/app/Models/User.php deleted file mode 100644 index 23b4063..0000000 --- a/app/Models/User.php +++ /dev/null @@ -1,44 +0,0 @@ - - */ - protected $fillable = [ - 'name', - 'email', - 'password', - ]; - - /** - * The attributes that should be hidden for serialization. - * - * @var array - */ - protected $hidden = [ - 'password', - 'remember_token', - ]; - - /** - * The attributes that should be cast. - * - * @var array - */ - protected $casts = [ - 'email_verified_at' => 'datetime', - ]; -}