Package Data | |
---|---|
Maintainer Username: | Aobo |
Maintainer Contact: | aobozhang@gmail.com (Aobo) |
Package Create Date: | 2016-02-16 |
Package Last Update: | 2016-02-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-12 15:02:55 |
Package Statistics | |
---|---|
Total Downloads: | 45 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
used rongcloud as Normal laravel facades
composer require aobozhang/rongcloud-facades '@dev' //get latest dev version
composer require aobozhang/rongcloud-facades //get stable version
Modify "config\app.php"
<?php
return = [
...,
'providers' = [
...,
Aobo\RongCloud\RongCloudServiceProvider::class,
],
];
php artisan vendor:publish
use RongCloud;
//...
$res = RongCloud::getToken($id,$name,$portraitUri);
var_dump($res);
Modify ".env" -- recommend
RONGCLOUD_APP_KEY=YourAppKey
RONGCLOUD_APP_SECRET=YourAppSecret
Or You Can Modify "config\rongcloud.php" -- The Same effect.
return [
'AppKey' => env('RONGCLOUD_APP_KEY', 'your appKey'),
'AppSecret' => env('RONGCLOUD_APP_SECRET', 'your appSecret')
];