You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
688 B
28 lines
688 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use App\Http\Controllers\Controller as BaseController;
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
class TestController extends BaseController
|
|
{
|
|
public function Test(){
|
|
$ret = null;
|
|
try {
|
|
//code...
|
|
$ret = Storage::disk('oss')->put('test_file.txt', 'Contents');
|
|
|
|
} catch (\Throwable $th) {
|
|
//throw $th;
|
|
dd($th);
|
|
}
|
|
// $ret = Storage::get('test_file.txt');
|
|
|
|
dd($ret);
|
|
return 1;
|
|
}
|
|
}
|