Skip to content

Commit 81d65a8

Browse files
author
ForexPro
committed
Правки
1 parent f53a9ff commit 81d65a8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bdSite/app/Http/Controllers/BdController.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ public function createBdView()
1616
$tablesName = ['products', 'supplieritem', 'pharmitem'];
1717
/*DB::select("SELECT table_name FROM information_schema.tables
1818
WHERE table_schema = 'bd'");*/
19+
$dbName=DB::connection()->getDatabaseName();
1920
foreach ($tablesName as $name) {
2021
$data[] = DB::table("$name")->get();
21-
$rowsName[] = DB::select("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$name'AND TABLE_SCHEMA = 'bd'");
22+
$rowsName[] = DB::select("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$name'AND TABLE_SCHEMA = '$dbName'");
2223
}
23-
/*$users=new User();
24-
dd($users->all()->get(0)->email);*/
2524
return view('bdView', ['Names' => $tablesName, 'data' => $data, 'rowsName' => $rowsName]);
2625
}
2726

bdSite/resources/views/header.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
@csrf
3838
<div class="mb-3">
3939
<label for="Email" class="form-label fw-bolder">Email</label>
40-
<input type="email" class="form-control" name="email"
40+
<input type="email" autocomplete="on" class="form-control" name="email"
4141
placeholder="[email protected]">
4242
</div>
4343
<div class="mb-3">
4444
<label for="Password" class="form-label fw-bolder">Пароль</label>
45-
<input type="password" class="form-control" name="password"
45+
<input type="password" autocomplete="on" class="form-control" name="password"
4646
placeholder="Ваш пароль">
4747
</div>
4848
<div class="form-check mb-3">

0 commit comments

Comments
 (0)