$records = DB::select('SHOW TABLES');
$db = "Tables_in_".env('DB_DATABASE');
$tables = [];
$columns = [];
foreach ($records as $record) {
$table = $record->{$db};
$tables[] = $table;
$columns[$table] = Schema::getColumnListing($table);
}
dump($tables);
dump($columns);
Blog
Zoeken
Een moment geduld a.u.b....
Uitgelichte artikelen
- 20 mei, 2025 Running Laravel Nightwatch with Supervisor
- 07 april, 2022 Hide Email
- 07 maart, 2022 Geo Distance
- 06 december, 2021 Certified Laravel Developer
- 04 juni, 2016 International Bank Account Number (IBAN) Validator
Recente artikelen
- 20 mei, 2026 How to Fix: "No releases available for package ‘pecl.php.net/mongodb"” during PECL MongoDB Installation
- 30 januari, 2026 Zakelijk postadres
- 18 juni, 2025 Avoiding Port 2407 Conflicts When Using Laravel Nightwatch with Supervisor
- 20 mei, 2025 Running Laravel Nightwatch with Supervisor
- 25 oktober, 2024 Failed to read FastCGI header
Categorieën
- Algemeen 22
- C, C++ en C# 3
- CentOS 4
- Composer 12
- Crypto 1
- Cryptografie 4
- CSS 16
- Elasticsearch 2
- Exact Online 1
- Films en Series 2
- Fotografie 2
- Git 11
- JAVA 1
- JavaScript 38
- Laravel 48
- Lua 3
- macOS 26
- MAMP 18
- MongoDB 4
- MySQL 46
- Photoshop 4
- PHP 129
- PhpStorm 6
- Plesk 10
- Redis 5
- Smarty 8
- Sociale Media 7
- Telefonie 1
- UNIX 82
- Webschrijven 10
- Windows 5
- World of Warcraft 3
- XHTML 27
- YouTube 19
Archief