This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storage::disk('gcs')->put("Name.pdf", $this->fileContent, 'public'); | |
$pdfUrl = Storage::disk('gcs')->url("Name.pdf"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Google\Cloud\Storage\StorageClient; | |
use Illuminate\Filesystem\FilesystemManager; | |
use Illuminate\Support\ServiceProvider; | |
use League\Flysystem\Filesystem; | |
use App\Adapters\GoogleStorageAdapter; | |
class GoogleCloudStorageServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Adapters; | |
use Google\Cloud\Core\Exception\NotFoundException; | |
use Google\Cloud\Storage\Acl; | |
use Google\Cloud\Storage\Bucket; | |
use Google\Cloud\Storage\StorageClient; | |
use Google\Cloud\Storage\StorageObject; | |
use GuzzleHttp\Psr7\StreamWrapper; | |
use League\Flysystem\Adapter\AbstractAdapter; | |
use League\Flysystem\AdapterInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Filesystem Disk | |
|-------------------------------------------------------------------------- | |
| | |
| Here you may specify the default filesystem disk that should be used | |
| by the framework. A "local" driver, as well as a variety of cloud | |
| based drivers are available for your choosing. Just store away! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> | |
<title>Generic Ajax</title> | |
<input type="text" class="text"> | |
<input type="button" class="btn-primary check" value="test"> | |
<h3> Ajax Response </h3><br> | |
<b id="res"></b> | |
<script type="text/javascript"> |