laravel5.5中使用vue(几条神奇的命令)

```php npm install cross-env -g rm -rf node_modules rm package-lock.json yarn.lock npm cache clean -–force npm install ``` http://www.ptbird.cn/laravel-mix-cross-env-error.html https:...

laravel-自写分页类

```php use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Paginator; public function list(Request $request) { $user = User::findOrFail(\auth('api')->id())...

让laravel-admin本地存储携带域名信息

由于laravel-admin本地上传的图片不携带域名,有两种方式访问到图片 第一种:在resource中进行拼接 ``` public function toArray($request) { return [ 'img_url' => \Storage::disk('public')->url($this->img_url...

重写laravel-admin图片上传功能(获取图片宽高)

## 一、新建图片扩展文件 app/Admin/Extentions/Image.php ```php

在laravel-admin中使用wangEditor编辑器图片上传功能

一、 参照laravel-admin官方文档配置wang-editor[传送门](http://laravel-admin.org/docs/#/zh/model-form-field-management?id=%E6%89%A9%E5%B1%95%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6 "传送门") 二、为了不让图片被git到仓库,...

laravel 测试-基本用法

``` php artisan make:test IndexTest ``` ```

存储ftp文件到本地laravel storage目录

```php // Already installed with Laravel 5+ use League\Flysystem\Filesystem; // The two filesystem adapters we will use use League\Flysystem\Adapter\Local as LocalAdapter; use League\Flysyst...

laravel-admin获取某一角色列表

```php protected function grid() { return Administrator::grid(function (Grid $grid) { //main-start $grid->model()->whereHas('roles', function ($query) { ...

laravel-admin select单向联动编辑bug修复方法

```php if (request()->route()->getActionMethod() == 'create') { $form->select('type_id', '推广类型')->options([1 => '套餐', 2 => '产品'])->load('good_id', '/admin/bannersType'...

ubuntu连接sql server

### 安装 ``` sudo apt-get install php7.2-sybase ``` > cd /etc/freetds/ > sudo vi freetds.conf [global]参数添加 ``` client charset = UTF-8 ``` 去掉laravel-sqlserver数据库中对charset的限制 ![](https:/...
//