小编Hyp*_*ion的帖子

Laravel:错误[PDOException]:无法在PostgreSQL中查找驱动程序

我正在尝试通过Laravel连接PostgreSQL数据库,以便进行php工匠迁移,但似乎没有被定向,因为它正在读取MySQL的数据库名称.

以下是来自database.php的命令:

'connections' => array(

    'sqlite' => array(
        'driver'   => 'sqlite',
        'database' => __DIR__.'/../database/production.sqlite',
        'prefix'   => '',
    ),

    'mysql' => array(
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'database'  => 'database',
        'username'  => 'root',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

    'pgsql' => array(
        'driver'   => 'pgsql',
        'host'     => 'localhost',
        'database' => 'postgres',
        'username' => 'postgres',
        'password' => 'root',
        'charset'  => 'utf8',
        'prefix'   => '',
        'schema'   => 'public',
    ),

    'sqlsrv' => array(
        'driver'   => 'sqlsrv', …
Run Code Online (Sandbox Code Playgroud)

php database postgresql syntax-error laravel

65
推荐指数
6
解决办法
22万
查看次数

LARAVEL 5 ::在主页上显示"用户名"?

所以Laravel的新版本已经内置了登录和注册系统,因此我更改了注册页面中的一些字段,现在希望在登录后在主页上显示"用户名"而不是"名称".有没有人知道这归因于哪里?一直在寻找这个.谢谢.

login username register-globals laravel-5

5
推荐指数
1
解决办法
1万
查看次数