Просмотр исходного кода

Remove unused seeders & Fix phpdocs

Bubka 2 лет назад
Родитель
Сommit
b5f8322ea3

+ 1 - 1
app/Extensions/WebauthnTwoFAuthUserProvider.php

@@ -11,7 +11,7 @@ class WebauthnTwoFAuthUserProvider extends WebAuthnUserProvider
     /**
      * Validate a user against the given credentials.
      *
-     * @param  \Illuminate\Contracts\Auth\Authenticatable|\App\Models\WebAuthnAuthenticatable|\App\Models\User  $user
+     * @param  \App\Models\User  $user
      * @param  array  $credentials
      * @return bool
      */

+ 0 - 21
database/seeders/DatabaseSeeder.php

@@ -1,21 +0,0 @@
-<?php
-
-namespace Database\Seeders;
-
-use Illuminate\Database\Seeder;
-
-class DatabaseSeeder extends Seeder
-{
-    /**
-     * Seed the application's database.
-     *
-     * @return void
-     */
-    public function run()
-    {
-        $this->call([
-            UsersTableSeeder::class,
-            TwoFAccountsTableSeeder::class
-        ]);
-    }
-}

+ 0 - 70
database/seeders/TwoFAccountsTableSeeder.php

@@ -1,70 +0,0 @@
-<?php
-
-namespace Database\Seeders;
-
-use App\Models\TwoFAccount;
-use Illuminate\Database\Seeder;
-
-class TwoFAccountsTableSeeder extends Seeder
-{
-    /**
-     * Run the database seeds.
-     *
-     * @return void
-     */
-    public function run()
-    {
-        $faker = \Faker\Factory::create();
-
-        TwoFAccount::create([
-            'otp_type' => 'totp',
-            'account' => $faker->safeEmail,
-            'service' => $faker->unique()->domainName,
-            'secret' => 'A4GRFHZVRBGY7UIW',
-            'algorithm' => 'sha1',
-            'digits' => 6,
-            'period' => 30,
-            'icon' => 'https://fakeimg.pl/64x64/',
-        ]);
-        TwoFAccount::create([
-            'otp_type' => 'totp',
-            'account' => $faker->safeEmail,
-            'service' => $faker->unique()->domainName,
-            'secret' => 'A4GRFHZVRBGY7UIW',
-            'algorithm' => 'sha1',
-            'digits' => 6,
-            'period' => 30,
-            'icon' => 'https://fakeimg.pl/64x64/',
-        ]);
-        TwoFAccount::create([
-            'otp_type' => 'totp',
-            'account' => $faker->safeEmail,
-            'service' => $faker->unique()->domainName,
-            'secret' => 'A4GRFHZVRBGY7UIW',
-            'algorithm' => 'sha1',
-            'digits' => 6,
-            'period' => 30,
-            'icon' => 'https://fakeimg.pl/64x64/',
-        ]);
-        TwoFAccount::create([
-            'otp_type' => 'totp',
-            'account' => $faker->safeEmail,
-            'service' => $faker->unique()->domainName,
-            'secret' => 'A4GRFHZVRBGY7UIW',
-            'algorithm' => 'sha1',
-            'digits' => 6,
-            'period' => 30,
-            'icon' => 'https://fakeimg.pl/64x64/',
-        ]);
-        TwoFAccount::create([
-            'otp_type' => 'totp',
-            'account' => $faker->safeEmail,
-            'service' => $faker->unique()->domainName,
-            'secret' => 'A4GRFHZVRBGY7UIW',
-            'algorithm' => 'sha1',
-            'digits' => 6,
-            'period' => 30,
-            'icon' => 'https://fakeimg.pl/64x64/',
-        ]);
-    }
-}

+ 0 - 24
database/seeders/UsersTableSeeder.php

@@ -1,24 +0,0 @@
-<?php
-
-namespace Database\Seeders;
-
-use App\Models\User;
-use Illuminate\Database\Seeder;
-
-class UsersTableSeeder extends Seeder
-{
-    /**
-     * Run the database seeds.
-     *
-     * @return void
-     */
-    public function run()
-    {
-            User::create([
-                'name' => 'admin',
-                'email' => 'admin@example.org',
-                'password' => bcrypt('password'),
-                'is_admin' => 1,
-            ]);
-    }
-}