laravel8_教程及案例

php系统laravel命令行

php系统laravel命令行php artisan命令php artisan list 列出命令php artisan serve 在php开发服务器中服务这个应用php artisan help 显示命令行的帮助php artisan env 显示当前框架环境

the environment file is invalid!

The environment file is invalid!Failed to parse dotenv file. Encountered unexpected whitespace at [Site Shop].

vagrant up 编码问题

vagrant up xC4 编码 UTF-8 问题,process_builder.rb:44:in encode!': "xC4" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LEHashiCorp/Vagrant/embedded/gems/2.2.14/gems/childprocess-4.0.0/lib/childprocess/windows/process_builder.rb:44:in encode!': "xC4" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE (Encoding::UndefinedConversionError)

Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes的解决方式

Laravel 8.*对默认数据库字符集进行了更改,现在utf8mb4它包含了对存储表情符号的支持。这只会影响新的应用程序,只要您运行MySQL v5.7.7及更高版本,就不需要做任何事情。

nginx-laravel伪静态

Nginx下Laravel伪静态

Error: Cannot find module 'webpack-cli/package.json

laravel中使用laravel-ui框架,还用到Bootstrap,使用如下命令来引入Bootstrap报异常,Error: Cannot find module 'webpack-cli/package.json'Please run "npm install && npm run dev" to compile your fresh scaffolding.

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

在安装Laravel/ui 3.0 包时候报异常Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in pharmemory-limit-errors for more info on how to handle out of memory errors.

allowedmemorysizeof1610612736bytesexhausted

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.