Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
copy that

Travis Block ajid2

🔥
copy that
View GitHub Profile
@ajid2
ajid2 / controller.php
Last active Jan 8, 2021
implementasi datatable serverside
View controller.php
<?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')
View cloudSettings
{"lastUpload":"2020-12-09T19:52:20.786Z","extensionVersion":"v3.4.3"}