Skip to content

Commit 1a284b5

Browse files
committed
update readme.md and composer.json
1 parent 082f0ce commit 1a284b5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cropper extension for laravel-admin
1010
## 安装
1111

1212
```bash
13-
composer require laravel-admin-ext-unofficial/cropper
13+
composer require laravel-admin-ext/cropper
1414
```
1515

1616
然后
@@ -39,7 +39,7 @@ php artisan vendor:publish --tag=laravel-admin-cropper
3939

4040
在form表单中使用它:
4141
```php
42-
$form->cropper('content');
42+
$form->cropper('content','label');
4343
```
4444
默认模式是自由剪裁模式,如果需要强制剪裁尺寸,请使用(注意该尺寸就是最后得到的图片尺寸 非“比例”)
4545
```php
@@ -57,7 +57,6 @@ $form->cropper('content','label')->cRatio($width,$height);
5757
当然,因为继承了ImageField类,所以也能使用 “intervention/image” 的各种(crop,fit,insert)方法
5858
(前提是你已经composer require intervention/image)
5959

60-
6160
License
6261
------------
6362
Licensed under [The MIT License (MIT)](LICENSE).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "laravel-admin-ext-unofficial/cropper",
2+
"name": "laravel-admin-ext/cropper",
33
"description": "Integrate Cropper into laravel-admin",
44
"type": "library",
55
"keywords": ["laravel-admin", "extension","cropper","image"],
6-
"homepage": "https://github.com/EVA09/cropper",
6+
"homepage": "https://github.com/laravel-admin-extensions/cropper",
77
"license": "MIT",
88
"authors": [
99
{

0 commit comments

Comments
 (0)