<?php
namespace App\Models;
use Laravel\Passport\HasApiTokens;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class MerchantApiKey extends Model
{
use HasApiTokens,HasFactory;
protected $guarded = ['id'];
protected $casts = [
'id' => 'integer',
'user_id' => 'integer',
'env' => 'string',
'client_id' => 'string',
'secret_id' => 'string'
];
public function scopeAuth($query){
return $query->where('user_id',auth()->user()->id);
}
public function user(){
return $this->belongsTo(User::class);
}
}
Payment Accept
Our platform simplifies payment acceptance, making transaction management effortless. With secure processing and user-friendly tools, you can easily handle payments from credit cards, debit cards, and digital methods. Our intuitive interface is designed for efficiency, ensuring a seamless experience for both you and your customers. Manage your transactions with ease and confidence.