编程小技巧

1. composer 跟换镜像源

国内稳定镜像源

https://mirrors.aliyun.com/composer/                           #阿里云#
https://mirrors.cloud.tencent.com/composer/              #腾讯云#
https://mirrors.huaweicloud.com/repository/php/      #华为云#

全局配置(阿里云为例)

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

项目配置

#更改项目中的composer.json文件, 增加一条“repository”#
{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
    },
    "repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://mirrors.aliyun.com/composer/"
        }
    }
}

2. 输入框去掉聚焦之后的蓝色边框

input:focus{
  outline: none !important;
  box-shadow: none !important;
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注