
laravel migration 中integer方法无法指定长度
查看源代码后发现integer方法的第二个参数并不是指定长度,而是是否设置auto increment, 所以integer方法无法指定子段长度,默认为11。

查看源代码后发现integer方法的第二个参数并不是指定长度,而是是否设置auto increment, 所以integer方法无法指定子段长度,默认为11。
dd(\Request::getClientIp());
composer require simplesoftwareio/simple-qrcode 1.5.1 // 在config/app.php 注册服务提供者: SimpleSoftwareIO\QrCode\QrCodeServiceP...
composer require phpmailer/phpmailer use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; public functi...
//开启查询日志 \DB::connection()->enableQueryLog(); //执行sql语句 $goods_group = \App\Goods_group::orderBy('sort','desc')->...
id pid controller /** * 加载视图 * @return [type] [description] */ public function goods_group() { ...