Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
rymanalu committed Dec 11, 2016
1 parent 9f102f2 commit 34d8c83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This package comes with two file providers, from HTTP request and local filesyst
```php
Uploader::from('request')->upload('avatar'); // see the supported providers at config/uploader.php

// Or you can use the magic method...
// Or you can use the magic methods...
Uploader::fromRequest()->upload('file');
Uploader::fromLocal()->upload('/path/to/file');
```
Expand All @@ -57,9 +57,17 @@ use Illuminate\Http\Request;

class UserController extends Controller
{
/**
* Change user's avatar.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function changeAvatar(Request $request)
{
Uploader::upload('avatar');

//
}
}
```
Expand Down

0 comments on commit 34d8c83

Please sign in to comment.