Skip to content

Instantly share code, notes, and snippets.

View travisblock's full-sized avatar
🌐
I do it for legacy

Travis Block travisblock

🌐
I do it for legacy
View GitHub Profile
@travisblock
travisblock / controller.php
Last active January 8, 2021 06:29
implementasi datatable serverside
<?php
use Yajra\DataTables\DataTables;
class TerminalController extends Controller
{
public function index(Request $request)
{
if ($request->ajax()) {
$data = Terminal::join('provinsi', 'terminal.id_provinsi', 'provinsi.id_provinsi')
->join('kabupaten', 'terminal.id_kabupaten', 'kabupaten.id_kabupaten')
{"lastUpload":"2020-12-09T19:52:20.786Z","extensionVersion":"v3.4.3"}