<?php
namespace Buglinjo\LaravelWebp\Traits;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Config;
trait WebpTrait
{
/**
* @var UploadedFile
*/
protected $image;
/**
* @var int
*/
protected $quality;
/**
* @param UploadedFile $image
* @return $this
*/
public function make(UploadedFile $image): self
{
$this->quality = Config::get('laravel-webp.default_quality');
$this->image = $image;
return $this;
}
/**
* @param $quality
* @return $this
*/
public function quality($quality): self
{
$this->quality = $quality;
return $this;
}
}
To access the Kueue Pay Developer API, you’ll need an API key. You can obtain your API key by logging in to your Kueue Pay merchant account and navigating to the API section. Collect Client ID , Secret ID & Merchant ID Carefully. Keep your API key confidential and do not share it publicly.