Skip to content

Instantly share code, notes, and snippets.

@TheGeekyM
TheGeekyM / ExportableLargeData.php
Last active January 9, 2020 11:29
Export with Laravel DataTables large data
<?php namespace App\DataTables\Concerns;
use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
trait ExportableLargeData
{
/**
* @var string
@TheGeekyM
TheGeekyM / app.Libs.RestClient.php
Last active November 20, 2018 16:03
RestClient To make communication between services so easy
<?php namespace App\Libs;
use GuzzleHttp\Client;
use Illuminate\Http\Request;
/**
* Class RestClient
*
* @package App\Services
*/