Skip to content

Instantly share code, notes, and snippets.

nutch31

Block or report user

Report or block nutch31

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SyncOpportunityLine.php
<?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;
View SyncAccount.php
<?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 Jul 6, 2019
controller.php
View response
<?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]);
}
View Campaign.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Campaign extends Model
{
//
protected $table = 'campaigns';
View factories->CampaignFactory.php
<?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;
View merge.php
---
ip: "192.168.13.13"
memory: 4096
cpus: 1
name: laravel-apps-homestead-vmbox
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
View alpha.php
ip: "192.168.10.10"
memory: 4096
cpus: 1
name: heroleads-homestead-vmbox
hostname: heroleads.com
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
View Nut.php
---
ip: "192.168.13.13"
memory: 2048
cpus: 1
name: laravel-apps-homestead-vmbox
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
View command.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Http\Request;
use Carbon\Carbon;
use DateTime;
use App\Model\Call;
View query.php
<?php
// Query
$query = Lead::where([
['campaign_id', $request->get('campaignId')]
])
->whereBetween('submitted_date_time', [$startDateTime, $endDateTime])
->where(function($q) use ($analyticCampaignId_array, $trackingPhone_array, $directChannelId_array, $status)
{
if(!empty($analyticCampaignId_array))
You can’t perform that action at this time.