Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nutch31's full-sized avatar

Nut Chantathab nutch31

View GitHub Profile
#!/usr/bin/php -q
<?php
require 'db.php';
global $agi,$conn;
require 'phpagi.php';
$agi = new AGI();
$agi->answer();
$array_url = getUrl();
#!/usr/bin/php -q
<?php
require 'db.php';
global $agi,$conn;
require 'phpagi.php';
$agi = new AGI();
$agi->answer();
$array_url = getUrl();
<template>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Example Component</div>
<div class="card-body">
I'm an example component.
</div>
</div>
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Cache\Adapter\AdapterInterface;
use Symfony\Component\Cache\CacheItem;
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Config\Definition\Exception\Exception;
use Symfony\Component\Cache\Adapter\AdapterInterface;
use Symfony\Component\Cache\CacheItem;
@nutch31
nutch31 / response
Created July 6, 2019 18:39
controller.php
<?php
$query = Lead::whereIn('channel_id', $array_channel);
if(!empty($request->get('startDateTime')) && !empty($request->get('endDateTime')))
{
$startDateTime = Carbon::parse($request->get('startDateTime'));
$endDateTime = Carbon::parse($request->get('endDateTime'));
$query->whereBetween('submitted_date_time', [$startDateTime, $endDateTime]);
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Campaign extends Model
{
//
protected $table = 'campaigns';
<?php
use Faker\Generator as Faker;
use App\Country;
use App\CampaignStatus;
use App\DurationCycleUnit;
use App\PaymentType;
use App\PaymentTerm;
use App\LandingPageLanguage;
use App\Currency;
---
ip: "192.168.13.13"
memory: 4096
cpus: 1
name: laravel-apps-homestead-vmbox
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
ip: "192.168.10.10"
memory: 4096
cpus: 1
name: heroleads-homestead-vmbox
hostname: heroleads.com
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys: