求助有用 upupw 搭建 Laravel 的嗎?

cqsskk發表於2020-03-07

D:\UPUPW\vv

Symfony\Component\Debug\Exception\FatalThrowableError

Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

http://test.com/public/index.php/

Hide solutions

Database name seems incorrect

You’re using the default database name laravel. This database does not exist.

Edit the .env file and use the correct database name in the DB_DATABASE key

Read more

    • 25

      D:\UPUPW\vv\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php

      Illuminate\Encryption\Encrypter

      :84

    • 24

      D:\UPUPW\vv\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php

      Illuminate\Cookie\Middleware\EncryptCookies

      :139

    • 23

      Illuminate\Cookie\Middleware\EncryptCookies

      :66

    • 22

      Illuminate\Pipeline\Pipeline

      :171

    • 21

      Illuminate\Pipeline\Pipeline

      :105

    • 20

      Illuminate\Routing\Router

      :683

    • 19

      Illuminate\Routing\Router

      :658

    • 18

      Illuminate\Routing\Router

      :624

    • 17

      Illuminate\Routing\Router

      :613

    • 16

      Illuminate\Foundation\Http\Kernel

      :177

    • 15

      Illuminate\Pipeline\Pipeline

      :130

    • 14

      Illuminate\Foundation\Http\Middleware\TransformsRequest

      :21

    • 13

      Illuminate\Pipeline\Pipeline

      :171

    • 12

      Illuminate\Foundation\Http\Middleware\TransformsRequest

      :21

    • 11

      Illuminate\Pipeline\Pipeline

      :171

    • 10

      Illuminate\Foundation\Http\Middleware\ValidatePostSize

      :27

    • 9

      Illuminate\Pipeline\Pipeline

      :171

    • 8

      Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode

      :62

    • 7

      Illuminate\Pipeline\Pipeline

      :171

    • 6

      Fideloper\Proxy\TrustProxies

      :57

    • 5

      Illuminate\Pipeline\Pipeline

      :171

    • 4

      Illuminate\Pipeline\Pipeline

      :105

    • 3

      Illuminate\Foundation\Http\Kernel

      :152

    • 2

      Illuminate\Foundation\Http\Kernel

      :117

    • 1

      :55

Illuminate\Encryption\Encrypter::encrypt :84

D:\UPUPW\vv\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php:84

{

return random_bytes($cipher === ‘AES-128-CBC’ ? 16 : 32);

}

/**

  • Encrypt the given value.

  • @param mixed $value

  • @param bool $serialize

  • @return string

  • @throws \Illuminate\Contracts\Encryption\EncryptException

  • /

    public function encrypt($value, $serialize = true)

    {

    $iv = random_bytes(openssl_cipher_iv_length($this->cipher));

    // First we will encrypt the value using OpenSSL. After this is encrypted we

    // will proceed to calculating a MAC for the encrypted value so that this

    // value can be verified later as not having been changed by the users.

    $value = \openssl_encrypt(

    $serialize ? serialize($value) : $value,

    $this->cipher, $this->key, 0, $iv

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章