天天看点

laravel相关问题2、安装laravel admin报错3、laravel admin访问地址4、LaravelS中文文档5、LaravelS和grpc不兼容问题

1、安装laravel报错

在php.ini配置里disable_functions中删除proc_open等相关参数
           

2、安装laravel admin报错

vi app/Providers/AppServiceProvider.php
新增
use Illuminate\Support\Facades\Schema;
boot方法 Schema::defaultStringLength(191);
           

3、laravel admin访问地址

http://localhost/laravel/public/index.php/admin/
           

4、LaravelS中文文档

5、LaravelS和grpc不兼容问题

composer require "hhxsv5/laravel-s:3.7.17"

在php.ini文件加上两行grpc配置
grpc.enable_fork_support = 1
grpc.poll_strategy = poll (linux使用epoll1)

laravels.php加配置
'cleaners' => [
    Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class,
    Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class,
    Hhxsv5\LaravelS\Illuminate\Cleaners\JWTCleaner::class,
],