happyqian

3694 经验值

kitty@happyqian:~$ sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it

@JellyBook 为什么我用sudo -Hu www-data ssh-keygen -t rsa生成的公钥在/home/www-data/.ssh下,不是在/var/www/.ssh

请问大神,我想用Eloquent对象生成一个空QueryBuilder对象,这是为了拼接条件查询用。
比如

    $builder = Product::where('id','>=',0);
    $btime = 0;
    $etime = 100;
    $keyword = 'hello';

    if(!empty($btime) && !empty($etime)){
        $builder->whereBetween('created_at',[$btime,$etime]);
    }

    if(!empty($keyword)){
        $builder->where(function($query)use($keyword){
            $query->orWhere('name','like','%'.$keyword.'%')->orWhere('email','like','%'.$keyword.'%');
        });
    }

    $Data = $builder->get();

如上面所示的例子,我想生成一个空的QueryBuilder对象而不是通过where('status','>',0),这样看起来怪怪的。

vue.js是不支持低于IE8,如果还想使用MVVM的话,可以使用avalon.js

如题 怎么视频加载不了,看不了

你这个不能合并吧,因为你$goods里有两条数据了。你这是一对多,不是一对一,如果一对一就可以合并成一个数据