dope2008

2868 经验值

不知道,安装不了,我直接是brew install homebrew/php/php-cs-fixer.....php -v 是7.1的

Please use the fully-qualified name e.g. josegonzalez/php/php53 to refer the formula.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Formula/php-cs-fixer.rb
Formulae found in multiple taps:

  • josegonzalez/php/php53

  • homebrew/php/php53

Please use the fully-qualified name e.g. josegonzalez/php/php53 to refer the formula.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Formula/php-code-sniffer@2.9.rb
Formulae found in multiple taps:

  • josegonzalez/php/php53

  • homebrew/php/php53

Please use the fully-qualified name e.g. josegonzalez/php/php53 to refer the formula.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Formula/phpunit.rb
Formulae found in multiple taps:

  • josegonzalez/php/php53

  • homebrew/php/php53

Please use the fully-qualified name e.g. josegonzalez/php/php53 to refer the formula.
Error: Cannot tap homebrew/php: invalid syntax in tap!

是OK。但是重新生成,又不行的。

[SymfonyComponentDebugExceptionFatalThrowableError]
Call to undefined method Closure::__set_state()

一直找不到问题是什么?删除了bootstrap/cache/config.php 又可以。

select * from courses where courses.category_id = '1' order by id desc limit 4
select * from courses where courses.category_id = '2' order by id desc limit 4
select * from courses where courses.category_id = '3' order by id desc limit 4
select * from courses where courses.category_id = '4' order by id desc limit 4

我现在都是重复来写的

$data[][]='中国';
\Excel::create('模板', function ($excel) use ($data) {
            $excel->sheet('score', function ($sheet) use ($data) {
                $sheet->rows($data);
            });
})->download('csv');

导出csv是乱码的。但是导出xlsx又是正常的,为什么呢?

Laravel Excel 2.1.23

  \Excel::filter('chunk')->load('storage/app/xls/1.xlsx')->chunk(500, function ($results) {
            foreach ($results as $key => $row) {
                dd($row);
            }
        });

导入日期时,读取出来是整数,如果是日期加时间,读取出来是带小数的
有什么方法,

怎么样验证一个数组总数是不是100

有N个输入框。要求用户输入的总数是100