Browse Source

fix:清理依赖

醉梦人间三千年 4 months ago
parent
commit
2c004e0231
4 changed files with 119 additions and 810 deletions
  1. 0 48
      app/Models/User.php
  2. 0 1
      composer.json
  3. 118 744
      composer.lock
  4. 1 17
      database/migrations/0001_01_01_000000_create_sessions_table.php

+ 0 - 48
app/Models/User.php

@@ -1,48 +0,0 @@
-<?php
-
-namespace App\Models;
-
-// use Illuminate\Contracts\Auth\MustVerifyEmail;
-use Illuminate\Database\Eloquent\Factories\HasFactory;
-use Illuminate\Foundation\Auth\User as Authenticatable;
-use Illuminate\Notifications\Notifiable;
-
-class User extends Authenticatable
-{
-    /** @use HasFactory<\Database\Factories\UserFactory> */
-    use HasFactory, Notifiable;
-
-    /**
-     * The attributes that are mass assignable.
-     *
-     * @var array<int, string>
-     */
-    protected $fillable = [
-        'name',
-        'email',
-        'password',
-    ];
-
-    /**
-     * The attributes that should be hidden for serialization.
-     *
-     * @var array<int, string>
-     */
-    protected $hidden = [
-        'password',
-        'remember_token',
-    ];
-
-    /**
-     * Get the attributes that should be cast.
-     *
-     * @return array<string, string>
-     */
-    protected function casts(): array
-    {
-        return [
-            'email_verified_at' => 'datetime',
-            'password' => 'hashed',
-        ];
-    }
-}

+ 0 - 1
composer.json

@@ -10,7 +10,6 @@
         "laravel/framework": "v11.30.0",
         "laravel/sanctum": "^4.0",
         "laravel/tinker": "^2.9",
-        "muyilongh/owl-wechat-user": "^1.0",
         "rap2hpoutre/laravel-log-viewer": "^2.4",
         "slowlyo/owl-admin": "^4.0",
         "slowlyo/owl-dict": "^1.3",

File diff suppressed because it is too large
+ 118 - 744
composer.lock


+ 1 - 17
database/migrations/0001_01_01_000000_create_users_table.php → database/migrations/0001_01_01_000000_create_sessions_table.php

@@ -11,21 +11,6 @@ return new class extends Migration
      */
     public function up(): void
     {
-        Schema::create('users', function (Blueprint $table) {
-            $table->id();
-            $table->string('name');
-            $table->string('email')->unique();
-            $table->timestamp('email_verified_at')->nullable();
-            $table->string('password');
-            $table->rememberToken();
-            $table->timestamps();
-        });
-
-        Schema::create('password_reset_tokens', function (Blueprint $table) {
-            $table->string('email')->primary();
-            $table->string('token');
-            $table->timestamp('created_at')->nullable();
-        });
 
         Schema::create('sessions', function (Blueprint $table) {
             $table->string('id')->primary();
@@ -42,8 +27,7 @@ return new class extends Migration
      */
     public function down(): void
     {
-        Schema::dropIfExists('users');
-        Schema::dropIfExists('password_reset_tokens');
         Schema::dropIfExists('sessions');
     }
 };
+

Some files were not shown because too many files changed in this diff