嗯 json这个不错
比如,目前配置如下
APP_DEBUG=true
CACHE_DRIVER=file
QUEUE_DRIVER=sync
但是我想配置一个数组
USER=['lucy','jhon']
试过这样是不行的,该怎么办呢
比如我想要设置password字段在数据库中的默认值为123456,该怎么写
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password', 60);
$table->rememberToken();
$table->timestamps();
});
我也遇到这样的情况
app的api和web端api几乎一样 后端使用同一套api
我是这样做的
app端api端 每个请求都有sign参数校验
web 不使用sign
后端api判断来源是否是web端
能获取到内网地址就是web端,因为我web端我使用nginx 反向代理到后端