Skip to content

Commit

Permalink
update readme.md and composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
EVA09 committed Oct 8, 2018
1 parent 082f0ce commit 1a284b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cropper extension for laravel-admin
## 安装

```bash
composer require laravel-admin-ext-unofficial/cropper
composer require laravel-admin-ext/cropper
```

然后
Expand Down Expand Up @@ -39,7 +39,7 @@ php artisan vendor:publish --tag=laravel-admin-cropper

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


License
------------
Licensed under [The MIT License (MIT)](LICENSE).
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "laravel-admin-ext-unofficial/cropper",
"name": "laravel-admin-ext/cropper",
"description": "Integrate Cropper into laravel-admin",
"type": "library",
"keywords": ["laravel-admin", "extension","cropper","image"],
"homepage": "https://github.com/EVA09/cropper",
"homepage": "https://github.com/laravel-admin-extensions/cropper",
"license": "MIT",
"authors": [
{
Expand Down

0 comments on commit 1a284b5

Please sign in to comment.