/home/kueuepay/public_html/app/Models/Card.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Card extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

    protected $casts    = [
        'id'            => 'integer',
        'user_id'       => 'integer',
        'card_number_hash'=> 'string',
        'slug'          => 'string',
        'name'          => 'string',
        'type'          => 'string',
        'card_number'   => 'string',
        'card_cvc'      => 'string',
        'expiry_date'   => 'string',
        'default'       => 'integer',
        'created_at'    => 'datetime',
        'updated_at'    => 'datetime',  
    ];

    //auth relation
    public function scopeAuth($query){
        return $query->where('user_id',auth()->user()->id);
    }

    //search
    public function scopeSearch($query,$data) {
        return $query->where("name",'LIKE','%'.$data.'%')
                     ->orWhere("card_number",'LIKE','%'.$data.'%')
                     ->orderBy('id','desc');
    }

    //user table relation
    public function user(){
        return $this->belongsTo(User::class);
    }

    //transaction table relation
    public function transactions(){
        return $this->hasMany(Transaction::class);
    }
}
Transfer Money
top

Effortless and Secure Money Transfers

Our transfer system provides a seamless and secure way to move your funds. Enjoy a straightforward process with top-notch security features, ensuring that sending money to friends, family, or businesses is both quick and worry-free. Experience smooth transactions with confidence, knowing that your security is our highest priority.

  • Access the Transfer Section: Open the transfer section on our website or app.
  • Choose a Recipient: Select the recipient from your contacts or manually enter their details.
  • Enter the Amount: Specify the amount you want to transfer.
  • Authorize the Transfer: Confirm the transaction using your PIN or biometric authentication.
  • Receive Confirmation: Get a confirmation message indicating that your transfer was successful.
img