在 app/common/(目录可以自己随便来)下新建一个文件 common.php,在内部补充如下代码 //测试公共函数 function show(){ return '我是公共函数'; } 在根目录下找到comp...
安装 composer require maatwebsite/excel 在 config/app.php 中注册服务提供者到 providers 数组: Maatwebsite\Excel\ExcelServiceProvider::class, 在 config/app.php...
//创建模型 php artisan make:model User User.php protected $table = 'table';//表名 protected $fillable=['fileds'];//允许更新的字段 public $timestamps = false;/...
//定义存储cookie文件位置 protected $filename = 'dirname(__FILE__).'/cookie.txt'' /** * 请求三方接口 * * @param string $url 接口链接 * @param string $method...
社交账号:
我要举报该,理由是: