Skip to content

Instantly share code, notes, and snippets.

View shankhadevpadam's full-sized avatar

Padam Shankhadev shankhadevpadam

View GitHub Profile
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 13, 2023 at 04:18 PM
-- Server version: 8.0.33-0ubuntu0.22.04.2
-- PHP Version: 8.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
<?php
namespace App\Presenters;
use App\Filter\DateFilter;
use App\Models\UserPackageAffiliate;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
class AffiliateReportPresenter

Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

<form id="frm-nicasia" action="{{ config('payment.gateways.nicasia.test.transaction_url') }}" method="post" enctype="multipart/form-data">
<input type="hidden" name="profile_id" value="{{ config('payment.gateways.nicasia.test.profile_id') }}">
<input type="hidden" name="transaction_uuid" value="{{ Str::uuid() }}">
<input type="hidden" name="signed_field_names" value="access_key,profile_id,transaction_uuid,signed_field_names,unsigned_field_names,signed_date_time,locale,transaction_type,reference_number,amount,currency,payment_method,bill_to_forename,bill_to_surname,bill_to_email,bill_to_phone,bill_to_address_line1,bill_to_address_city,bill_to_address_state,bill_to_address_country,bill_to_address_postal_code">
<input type="hidden" name="unsigned_field_names" value="card_type,card_number,card_expiry_date">
<input type="hidden" name="signed_date_time" value="{{ now() }}">
<input type="hidden" name="locale" value="en">
<input type="hidden" name="amount" value="1">
<input type="hidde
<?php
namespace App\Traits;
use App\Meta;
trait HasMeta
{
public function fromMeta($key)
{
return optional($this->meta->where('key', $key)->first())->value;