PHP 8.3.31
Preview: DatabaseInspectionCommand.php Size: 1.72 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/Console/DatabaseInspectionCommand.php

<?php

namespace Illuminate\Database\Console;

use Illuminate\Console\Command;
use Illuminate\Database\ConnectionInterface;
use Illuminate\Support\Arr;

abstract class DatabaseInspectionCommand extends Command
{
    /**
     * Get a human-readable name for the given connection.
     *
     * @param  \Illuminate\Database\ConnectionInterface  $connection
     * @param  string  $database
     * @return string
     *
     * @deprecated
     */
    protected function getConnectionName(ConnectionInterface $connection, $database)
    {
        return $connection->getDriverTitle();
    }

    /**
     * Get the number of open connections for a database.
     *
     * @param  \Illuminate\Database\ConnectionInterface  $connection
     * @return int|null
     *
     * @deprecated
     */
    protected function getConnectionCount(ConnectionInterface $connection)
    {
        return $connection->threadCount();
    }

    /**
     * Get the connection configuration details for the given connection.
     *
     * @param  string|null  $database
     * @return array
     */
    protected function getConfigFromDatabase($database)
    {
        $database ??= config('database.default');

        return Arr::except(config('database.connections.'.$database), ['password']);
    }

    /**
     * Remove the table prefix from a table name, if it exists.
     *
     * @param  \Illuminate\Database\ConnectionInterface  $connection
     * @param  string  $table
     * @return string
     */
    protected function withoutTablePrefix(ConnectionInterface $connection, string $table)
    {
        $prefix = $connection->getTablePrefix();

        return str_starts_with($table, $prefix)
            ? substr($table, strlen($prefix))
            : $table;
    }
}

Directory Contents

Dirs: 3 × Files: 9

Name Size Perms Modified Actions
Factories DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Seeds DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
1.72 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
7.26 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
2.97 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
3.85 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
5.94 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
8.95 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
6.79 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
8.56 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
2.76 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).