forked from magonysandormate/PeePal
Kész(?)
This commit is contained in:
@@ -6,9 +6,6 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('keruletek', function (Blueprint $t) {
|
||||
@@ -42,11 +39,10 @@ return new class extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
Schema::dropIfExists('keruletek');
|
||||
Schema::dropIfExists('felhasznalok');
|
||||
Schema::dropIfExists('wc_adatok');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,9 +8,6 @@ use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this -> call([
|
||||
|
||||
@@ -14,14 +14,22 @@ class FelhasznaloFeltoltes extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('felhasznalok')->insert([
|
||||
'nev' => 'Magony Sándor',
|
||||
'email' => 'magonys2006@gmail.com',
|
||||
DB::table('felhasznalok')->insert([[
|
||||
'nev' => 'Admin',
|
||||
'email' => 'admin@gmail.com',
|
||||
'felh_nev' => 'admin',
|
||||
'jelszo' => Hash::make('admin'),
|
||||
'is_admin' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
], [
|
||||
'nev' => 'Felhasználó',
|
||||
'email' => 'felhasznalo@gmail.com',
|
||||
'felh_nev' => 'felhaszalo',
|
||||
'jelszo' => Hash::make('felhasznalo'),
|
||||
'is_admin' => false,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user