composer file_put_contents(./composer.json): failed to open stream: Permission denied
composer file_put_contents(./composer.json): failed to open stream: Permission d…
composer file_put_contents(./composer.json): failed to open stream: Permission d…
laravel update 并且 increment,用raw实现 app(‘db’)->table(‘orders’)->where(‘orde…
laravel Eloquent 三表联查怎么写,四表联查怎么写,多表关联等,我们以三表为例,多表自行扩展。 表:orders 主键:order_id 表里面有…
错误信息: The version of powershell currently installed on this host is less than th…
LARAVEL HOMESTEAD OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 搭建laravel官方的开…
laravel 框架在.env文件中使用变量的方法 APP_NAME=LARAVEL APP_NEW_NAME=${APP_NAME} env(‘A…
laravel Carbon 通过生日获取年龄,相隔多少天,多少个月等等,都在Carbon里面了 $obj = new \Carbon\Carbon(‘1989…
解决 lumen,laravel 并发较多时长会出现数据链接失败的情况 最近发现laravel或者lumen(当前使用版本5.2)在并发较大的情况下时常出现链接…
我们以比较常用的continue和break为例子,在AppServiceProvider类的boot方法里面添加如下代码: public function b…
今天分析下lumen(laravel分支下的一个轻量版本是和纯粹API开发的)的一个完整的请求生命周期,前期工作是你知道laravel的自动加载是通过compo…
The page has expired due to inactivity. Please refresh and try again 方法1: {!! cs…
laravel 查看路由列表代码: 1、 app()->getRoutes(); 2 $routes = Route::getRoutes() forea…
写法一 User::with([‘order’, => function() use ($query) { $query->select(‘orde…
‘order_time’ => ‘date_format:”Y-m-d H:i:s”|required’,
Internal GD font () not available. laravel 5.5 中 Filesystem::files 不再返回绝对路径。 ven…
众所周知,laravel的ORM使用起来非常顺手,并且强大,那么如果我们不用laravel也想用ORM该怎么做了 1、composer 安装需要的组件 comp…
今天公司需要使用快递查询的业务,于是就造了个轮子出来,然后分享下,如遇问题,可以反馈,如用着还可以,望star。采用的是快递100的接口,还算稳定。 compo…
[Composer\Downloader\TransportException] Your configuration does not allow conne…
if(Cache::has(‘user_’. $id)){ return Cache::get(‘user_’. $id); } $user = User::w…
//为A1单元格添加注释 $sheet->getComment(‘A1’)->getText()->createTextRun(‘你得注释内容…