有3种方法:
DB::getConfig('prefix');
DB::connection()->getTablePrefix();
Config::get('database.connections.mysql.prefix');
有3种方法:
DB::getConfig('prefix');
DB::connection()->getTablePrefix();
Config::get('database.connections.mysql.prefix');
使用php上传文件出现 nginx: 413 Request Entity Too Large 错误,解决方法如下:
upload_max_filesize 和 post_max_size 修改为 20M(或更大),然后重启php-fpm。/etc/nginx/nginx.conf ),在 http{} 段中加入 client_max_body_size 20m; 20m为允许最大上传的大小,保存后重启nginx。